Name | Description | |
---|---|---|
ObjectCrud Constructor | Initialize with the database provider, mapper, tableCrud and stored procedure provider. |
The following tables list the members exposed by ObjectCrud.
Name | Description | |
---|---|---|
ObjectCrud Constructor | Initialize with the database provider, mapper, tableCrud and stored procedure provider. |
Name | Description | |
---|---|---|
AfterDelete | Set to intercept an object after a record is deleted | |
AfterInsert | Set to intercept an object after a record is inserted | |
AfterRead | Occurs after an object has been read from the database | |
AfterUpdate | Set to intercept an object after a record is updated | |
BeforeDelete | Set to intercept an object before a record is deleted | |
BeforeInsert | Set to intercept an object before a record is inserted | |
BeforeUpdate | Set to intercept an object before a record is updated | |
DefaultStringCreationLength | Default length for strings. |
Name | Description | |
---|---|---|
Count<T> | Get the number of records in a table | |
CreateTableFromClass<T> | Create a table in the database based on the passed class | |
CreateTablesFromNamespace | Create a table in the database for each class that is in the passed in namespace | |
Delete | Overloaded. Delete the corresponding record in the database | |
DeleteByPrimaryKey<T> | /Delete an object by the primary key | |
DeleteWithChildren | Overloaded. Delete the corresponding record in the database and all its children | |
GenerateNamespaceSql | Create the SQL needed to create all the tables for the namespace | |
GenerateUpgradeNamespaceSql | Create the SQL needed to upgrade all the tables for the namespace | |
GenerateUpgradeTableSql | Generate SQL to upgrade a single table | |
GenerateUpgradeTablesSql | Generates SQL for upgrading a list of the passed tables | |
GetCompositeKeyValues<T> | Get a list of the values from the object that make up the composite primaryKey | |
GetLazyValue<T,TC> | Load a child or a parent by the property name lambda | |
GetMaxPrimaryKey<T> | Get the maximum for the primary key for an object type. | |
GetObjectMap<T> | Get the object map for the passed class | |
Insert<T> | Insert a record into the database | |
Load | Overloaded. Load the passed sql into a list of objects | |
LoadAll | Overloaded. Load all the records from a table into a class list | |
LoadAllWithChildren | Overloaded. Load all the records from a table and its children and parents into a class list | |
LoadByColumn<T> | Load records based on a column into a class list | |
LoadByColumnWithChildren<T> | Same as LoadByColumn except it also loads the children | |
LoadFromSproc | Overloaded. Load a list of items from a stored procedure and automatically map to an object | |
LoadFromSprocWithChildren | Overloaded. Load a list of objects from a stored procedure with all children | |
LoadLookup | Overloaded. Return a list of items with the primary key and the first string column ordered by the first string column | |
LoadOne | Overloaded. Load a single object by the passed parameters | |
LoadPage | Overloaded. Load a page of records | |
LoadTop | Overloaded. Load Top N Records | |
LoadWhere | Overloaded. Load entities matching the passed in where clause | |
LoadWithChildren | Overloaded. Load all the parents and children for the passed in entity | |
Save | Overloaded. Save a list of items to the database | |
SaveWithChildren | Overloaded. Save an object with its parent and children | |
Search | Overloaded. Search for records based on the passed in search object | |
SearchCount<T> | Count the number of records for a search | |
SetForeignKeys<T,TU> | Set the foreign primaryKey of the child object to the primary key of the parent object | |
Setup | Overloaded. Setup the current database to work with classes from the passed in namespace | |
SynchronizeNamespaceStructure | Synchronize table structure for each class that is in the passed in namespace | |
SynchronizeTableStructure<T> | Synchronize table structure with the specified by typeparam class | |
SyncTableFromEnum | Create/Update a table and fill with values from an enum. | |
Update<T> | Update a record in the database |