Esempio n. 1
0
 public SqlUpdateBuilder(SqlDataModel <TEntity> dataModel) :
     base(dataModel)
 {
     _tableName    = DataModel.StorageModel.DefaultTableName;
     _whereBuilder = new ConditionBuilder <TEntity>(dataModel, ConditionConverter);
     _assignments  = new FieldAssignmentBuilder <TEntity>(dataModel);
 }
Esempio n. 2
0
 public SqlSelectBuilder(SqlDataModel <TEntity> dataModel, IObjectFactory objectFactory = null) :
     base(dataModel)
 {
     _tableName         = DataModel.StorageModel.DefaultTableName;
     _whereBuilder      = new ConditionBuilder <TEntity>(dataModel, ConditionConverter);
     _havingBuilder     = new ConditionBuilder <TEntity>(dataModel, ConditionConverter);
     _groupByBuilder    = new GroupByBuilder <TEntity>(dataModel, ValueConverter);
     _rangeBuilder      = new RangeBuilder <TEntity>(dataModel, ValueConverter);
     _projectionBuilder = new ProjectionBuilder <TEntity>(dataModel, ValueConverter, objectFactory);
     _orderByBuilder    = new OrderByBuilder <TEntity>(dataModel, ValueConverter);
 }
Esempio n. 3
0
 public SqlDeleteBuilder(SqlDataModel <TEntity> dataModel) :
     base(dataModel)
 {
     _tableName    = DataModel.StorageModel.DefaultTableName;
     _whereBuilder = new ConditionBuilder <TEntity>(dataModel, ConditionConverter);
 }