Knight Data Access Layer
IAutoMap Interface Members
Properties  Methods 

KellermanSoftware.NetDataAccessLayer Namespace : IAutoMap Interface

The following tables list the members exposed by IAutoMap.

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

Reference

IAutoMap Interface
KellermanSoftware.NetDataAccessLayer Namespace