Knight Data Access Layer
ObjectCrud Class Members
Properties  Methods 


KellermanSoftware.NetDataAccessLayer Namespace : ObjectCrud Class

The following tables list the members exposed by ObjectCrud.

Public Constructors
 NameDescription
Public Constructor Initialize with the database provider, mapper, tableCrud and stored procedure provider.  
Top
Public Properties
 NameDescription
Public Property Set to intercept an object after a record is deleted  
Public Property Set to intercept an object after a record is inserted  
Public Property Occurs after an object has been read from the database  
Public Property Set to intercept an object after a record is updated  
Public Property Set to intercept an object before a record is deleted  
Public Property Set to intercept an object before a record is inserted  
Public Property Set to intercept an object before a record is updated  
Public Property Default length for strings.  
Top
Public Methods
 NameDescription
Public Method Get the number of records in a table  
Public Method Create a table in the database based on the passed class  
Public Method Create a table in the database for each class that is in the passed in namespace  
Public MethodOverloaded.  Delete the corresponding record in the database  
Public Method /Delete an object by the primary key  
Public MethodOverloaded.  Delete the corresponding record in the database and all its children  
Public Method Create the SQL needed to create all the tables for the namespace  
Public Method Create the SQL needed to upgrade all the tables for the namespace  
Public Method Generate SQL to upgrade a single table  
Public Method Generates SQL for upgrading a list of the passed tables  
Public Method Get a list of the values from the object that make up the composite primaryKey  
Public Method Load a child or a parent by the property name lambda  
Public Method Get the maximum for the primary key for an object type.  
Public Method Get the object map for the passed class  
Public Method Insert a record into the database  
Public MethodOverloaded.  Load the passed sql into a list of objects  
Public MethodOverloaded.  Load all the records from a table into a class list  
Public MethodOverloaded.  Load all the records from a table and its children and parents into a class list  
Public Method Load records based on a column into a class list  
Public Method Same as LoadByColumn except it also loads the children  
Public MethodOverloaded.  Load a list of items from a stored procedure and automatically map to an object  
Public MethodOverloaded.  Load a list of objects from a stored procedure with all children  
Public MethodOverloaded.  Return a list of items with the primary key and the first string column ordered by the first string column  
Public MethodOverloaded.  Load a single object by the passed parameters  
Public MethodOverloaded.  Load a page of records  
Public MethodOverloaded.  Load Top N Records  
Public MethodOverloaded.  Load entities matching the passed in where clause  
Public MethodOverloaded.  Load all the parents and children for the passed in entity  
Public MethodOverloaded.  Save a list of items to the database  
Public MethodOverloaded.  Save an object with its parent and children  
Public MethodOverloaded.  Search for records based on the passed in search object  
Public Method Count the number of records for a search  
Public Method Set the foreign primaryKey of the child object to the primary key of the parent object  
Public MethodOverloaded.  Setup the current database to work with classes from the passed in namespace  
Public Method Synchronize table structure for each class that is in the passed in namespace  
Public Method Synchronize table structure with the specified by typeparam class  
Public Method Create/Update a table and fill with values from an enum.  
Public Method Update a record in the database  
Top
See Also

Reference

ObjectCrud Class
KellermanSoftware.NetDataAccessLayer Namespace