コード例 #1
0
ファイル: SqlUpdateBuilder.cs プロジェクト: DevJohnC/DataKit
 public SqlUpdateBuilder(SqlDataModel <TEntity> dataModel) :
     base(dataModel)
 {
     _tableName    = DataModel.StorageModel.DefaultTableName;
     _whereBuilder = new ConditionBuilder <TEntity>(dataModel, ConditionConverter);
     _assignments  = new FieldAssignmentBuilder <TEntity>(dataModel);
 }
コード例 #2
0
ファイル: SqlSelectBuilder.cs プロジェクト: DevJohnC/DataKit
 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);
 }
コード例 #3
0
 public SqlDeleteBuilder(SqlDataModel <TEntity> dataModel) :
     base(dataModel)
 {
     _tableName    = DataModel.StorageModel.DefaultTableName;
     _whereBuilder = new ConditionBuilder <TEntity>(dataModel, ConditionConverter);
 }