Azavea.Open.DAO.Memory.MemoryDaLayer.GenerateClassMappingFromStoreRoom C# (CSharp) Method

GenerateClassMappingFromStoreRoom() public method

Uses some form of introspection to determine what data is stored in this data store, and generates a ClassMapping that can be immediately used with a DictionaryDAO. As much data as practical will be populated on the ClassMapping, at a bare minimum the Table (typically set to the storeRoomName passed in, or the more correct or fully qualified version of that name), the TypeName (set to the storeRoomName, since we have no .NET type), and the "data cols" and "obj attrs" will be the list of attributes / columns in the data source, mapped to themselves.
public GenerateClassMappingFromStoreRoom ( string storeRoomName, IComparer columnSorter ) : ClassMapping
storeRoomName string The name of the storeroom (I.E. table). May be null /// if this data source does not use store rooms.
columnSorter IComparer If you wish the columns / attributes to be in a particular /// order, supply this optional parameter. May be null.
return ClassMapping
        public ClassMapping GenerateClassMappingFromStoreRoom(string storeRoomName, IComparer<ClassMapColDefinition> columnSorter)
        {
            throw new NotSupportedException("This data store is created entirely off the data stored in it, and has no intrinsic knowledge of data structure.");
        }