public SqlUpdateBuilder(SqlDataModel <TEntity> dataModel) : base(dataModel) { _tableName = DataModel.StorageModel.DefaultTableName; _whereBuilder = new ConditionBuilder <TEntity>(dataModel, ConditionConverter); _assignments = new FieldAssignmentBuilder <TEntity>(dataModel); }
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); }
public SqlDeleteBuilder(SqlDataModel <TEntity> dataModel) : base(dataModel) { _tableName = DataModel.StorageModel.DefaultTableName; _whereBuilder = new ConditionBuilder <TEntity>(dataModel, ConditionConverter); }