Craig's Utility Library
4.0 Beta
|
Generator interface, used to generate commands More...
Public Member Functions | |
IBatch | All (params IParameter[] Parameters) |
Generates a batch that will get all items for the given type the parameters specified More... | |
IBatch | All (int Limit, params IParameter[] Parameters) |
Generates a batch that will get all items for the given type the parameters specified More... | |
IBatch | Any (params IParameter[] Parameters) |
Generates a batch that will get the first item that satisfies the parameters specified More... | |
IBatch | Delete (T Object) |
Generates a batch that will delete the object More... | |
IBatch | Delete (IEnumerable< T > Objects) |
Generates a batch that will delete the object More... | |
IBatch | Insert (T Object) |
Generates a batch that will insert the data from the object More... | |
IBatch | Insert (IEnumerable< T > Objects) |
Generates a batch that will insert the data from the objects More... | |
IBatch | JoinsDelete< P > (IProperty< T, P > Property, T Object) |
Deletes items from the joining table for the property More... | |
IBatch | JoinsSave< P, ItemType > (IProperty< T, P > Property, T Object) |
Saves items to the joining table for the property More... | |
IBatch | LoadProperty< P > (T Object, IProperty Property) |
Generates a batch that will get the specific property for the object More... | |
IBatch | PageCount (int PageSize, params IParameter[] Parameters) |
Generates a batch that will get the number of pages for a given page size given the parameters specified More... | |
IBatch | Paged (int PageSize, int CurrentPage, string OrderBy, params IParameter[] Parameters) |
Generates a batch that will get a specific page of data that satisfies the parameters specified More... | |
IBatch | Save< PrimaryKeyType > (T Object) |
Saves the object to the source More... | |
void | SetupCommands (IMapping< T > Mapping) |
Sets up the commands for the mapping More... | |
void | SetupLoadCommands< D > (Map< T, D > Property) |
Sets up the default load command for a map property More... | |
void | SetupLoadCommands< D > (IEnumerableManyToOne< T, D > Property) |
Sets up the default load command for a IEnumerableManyToOne property More... | |
void | SetupLoadCommands< D > (ListManyToOne< T, D > Property) |
Sets up the default load command for a ListManyToOne property More... | |
void | SetupLoadCommands< D > (ListManyToMany< T, D > Property) |
Sets up the default load command for a ListManyToMany property More... | |
void | SetupLoadCommands< D > (IListManyToMany< T, D > Property) |
Sets up the default load command for a ListManyToMany property More... | |
void | SetupLoadCommands< D > (IListManyToOne< T, D > Property) |
Setups the load commands. More... | |
void | SetupLoadCommands< D > (ICollectionManyToMany< T, D > Property) |
Sets up the default load command for a ListManyToMany property More... | |
void | SetupLoadCommands< D > (ICollectionManyToOne< T, D > Property) |
Setups the load commands. More... | |
void | SetupLoadCommands< D > (ManyToMany< T, D > Property) |
Sets up the default load command for a ManyToMany property More... | |
void | SetupLoadCommands< D > (ManyToOne< T, D > Property) |
Sets up the default load command for a ManyToOne property More... | |
IBatch | Update (T Object) |
Generates a batch that will update the data from the object More... | |
IBatch | Update (IEnumerable< T > Objects) |
Generates a batch that will update the data from the objects More... | |
Generator interface, used to generate commands
T | Class type to generate |
T | : | class |
Definition at line 32 of file IGenerator.cs.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.All | ( | params IParameter[] | Parameters | ) |
Generates a batch that will get all items for the given type the parameters specified
Parameters | Parameters |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.All | ( | int | Limit, |
params IParameter[] | Parameters | ||
) |
Generates a batch that will get all items for the given type the parameters specified
Parameters | Parameters |
Limit | Max number of items to return |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Any | ( | params IParameter[] | Parameters | ) |
Generates a batch that will get the first item that satisfies the parameters specified
Parameters | Parameters |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Delete | ( | T | Object | ) |
Generates a batch that will delete the object
Object | Object to delete |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Delete | ( | IEnumerable< T > | Objects | ) |
Generates a batch that will delete the object
Objects | Objects to delete |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Insert | ( | T | Object | ) |
Generates a batch that will insert the data from the object
Object | Object to insert |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Insert | ( | IEnumerable< T > | Objects | ) |
Generates a batch that will insert the data from the objects
Objects | Objects to insert |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.JoinsDelete< P > | ( | IProperty< T, P > | Property, |
T | Object | ||
) |
Deletes items from the joining table for the property
Property | Property |
Object | Object |
P | Property type |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.JoinsSave< P, ItemType > | ( | IProperty< T, P > | Property, |
T | Object | ||
) |
Saves items to the joining table for the property
Property | Property |
Object | Object |
P | Property type |
ItemType | Item type |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.LoadProperty< P > | ( | T | Object, |
IProperty | Property | ||
) |
Generates a batch that will get the specific property for the object
P | Property type |
Object | Object to get the property for |
Property | Property to get |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.PageCount | ( | int | PageSize, |
params IParameter[] | Parameters | ||
) |
Generates a batch that will get the number of pages for a given page size given the parameters specified
Parameters | Parameters |
PageSize | Page size |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Paged | ( | int | PageSize, |
int | CurrentPage, | ||
string | OrderBy, | ||
params IParameter[] | Parameters | ||
) |
Generates a batch that will get a specific page of data that satisfies the parameters specified
PageSize | Page size |
CurrentPage | The current page (starting at 0) |
OrderBy | The order by portion of the query |
Parameters | Parameters |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Save< PrimaryKeyType > | ( | T | Object | ) |
Saves the object to the source
PrimaryKeyType | Primary key type |
Object | Object to save |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupCommands | ( | IMapping< T > | Mapping | ) |
Sets up the commands for the mapping
Mapping | Mapping to set up |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > | ( | Map< T, D > | Property | ) |
Sets up the default load command for a map property
D | Data type |
Property | Map property |
D | : | class |
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > | ( | IEnumerableManyToOne< T, D > | Property | ) |
Sets up the default load command for a IEnumerableManyToOne property
D | Data type |
Property | IEnumerableManyToOne property |
D | : | class |
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > | ( | ListManyToOne< T, D > | Property | ) |
Sets up the default load command for a ListManyToOne property
D | Data type |
Property | ListManyToOne property |
D | : | class |
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > | ( | ListManyToMany< T, D > | Property | ) |
Sets up the default load command for a ListManyToMany property
D | Data type |
Property | ListManyToMany property |
D | : | class |
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > | ( | IListManyToMany< T, D > | Property | ) |
Sets up the default load command for a ListManyToMany property
D | Data type |
Property | ListManyToMany property |
D | : | class |
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > | ( | IListManyToOne< T, D > | Property | ) |
Setups the load commands.
D |
Property | The property. |
D | : | class |
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > | ( | ICollectionManyToMany< T, D > | Property | ) |
Sets up the default load command for a ListManyToMany property
D | Data type |
Property | ListManyToMany property |
D | : | class |
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > | ( | ICollectionManyToOne< T, D > | Property | ) |
Setups the load commands.
D |
Property | The property. |
D | : | class |
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > | ( | ManyToMany< T, D > | Property | ) |
Sets up the default load command for a ManyToMany property
D | Data type |
Property | ManyToMany property |
D | : | class |
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > | ( | ManyToOne< T, D > | Property | ) |
Sets up the default load command for a ManyToOne property
D | Data type |
Property | ManyToOne property |
D | : | class |
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Update | ( | T | Object | ) |
Generates a batch that will update the data from the object
Object | Object to update |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.
IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Update | ( | IEnumerable< T > | Objects | ) |
Generates a batch that will update the data from the objects
Objects | Objects to update |
Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.