Knight Data Access Layer
AutoMap Class Members
Properties  Methods 


KellermanSoftware.NetDataAccessLayer Namespace : AutoMap Class

The following tables list the members exposed by AutoMap.

Public Constructors
 NameDescription
Public Constructor Initialize with the database provider  
Top
Public Properties
 NameDescription
Public Property Default primary key in the database. For an exact match with a class and database table, set to string.empty The default is TableNameId  
Public Property Specify the default schema or owner when using automatic mapping. Example: [MyDatabase].[dbo].  
Public Property The default string length when doing a CreateTableFromClass. The default is 50.  
Public Property If true, properties such as CreateDate, UpdateDate, CreateUser will be automatically filled in before saving The default is true  
Public Property A list of the names maintenance fields that will be filled in automatically such as CreateDate, UpdateDate, CreateUser  
Public Property A list of mapped tables.  
Public Property A map of types to database tables  
Public Property If true, make the table names plural. The default is True  
Public Property If true, defaults will be set in the object before it is sent to the database. The default is true  
Top
Public Methods
 NameDescription
Public Method Clear mappings for database  
Public Method Clear all cached mappings  
Public Method Create a generic mapping based on a class type  
Public Method Gets the associated tables for a type  
Public Method Return name of child foreign key if found, otherwise null.  
Public Method Get the first string column in the table  
Public Method Get a map for a specified class. If it does not exist in the ObjectMap it will be Auto Mapped.  
Public Method Return name of parent foreign key if found, otherwise null.  
Public Method Map SQL to a class  
Public Method Get a map for a specified table name from the database.  
Public Method Map all tables in the database  
Public Method Load the map into a Table List  
Public Method Load the an ObjectMap from a file and XML DeSerialize it  
Public Method Set the foreign key constraints for the tables  
Public Method Maps the indexes for tables.  
Public MethodOverloaded.  Create a map for each class that is in the passed in namespace  
Public Method Returns true if the object has been mapped  
Public Method XML Serialize the current ObjectMap and save it to a file  
Public Method Mark specified by name property as child  
Public Method Mark specified by name property as composition  
Public Method Set the default string length for string and char field types for the passed in table  
Public Method Mark specified by name property as parent  
Public Method Sort the tables with the roots appearing first  
Public Method Verify that the passed in object can be mapped to a table  
Public Method Verify that all the classes and properties in the passed namespace can be mapped to a table and columns  
Top
See Also

Reference

AutoMap Class
KellermanSoftware.NetDataAccessLayer Namespace