Loads entities of type EntityType meeting a custom SQL Where Clause.
Namespace: Aspectize.CoreAssembly: AspectizeDAL (in AspectizeDAL.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
void LoadEntitiesFromWhereClause<EntityType>( string whereClause ) where EntityType : new(), Entity, IEntity, IDataWrapper |
| Visual Basic |
|---|
Sub LoadEntitiesFromWhereClause(Of EntityType As {New, Entity, IEntity, IDataWrapper}) ( _ whereClause As String _ ) |
Parameters
- whereClause
- Type: System..::..String
The custom SQL Where Clause.
Type Parameters
- EntityType
- Type of Entity to load
Remarks
WhereClause references physical column names.
Examples
string whereClause = "Name Like 'B%' Or Color = 'Black'"; dm.LoadEntitiesFromWhereClause<AdventureWorks.Production.Product>(whereClause);
Dim whereClause = "Name Like 'B%' Or Color = 'Black'" dm.LoadEntitiesFromWhereClause(Of AdventureWorks.Production.Product)(whereClause)