public DataSelectContext(IDataAccess dataAccess, string name, Type entityType, Grouping grouping, ICondition condition, ISchema schema, Paging paging, Sorting[] sortings, object state = null) : base(dataAccess, name, entityType, grouping, condition, schema, paging, sortings, state) { DataAccessContextUtility.Initialize(dataAccess.Name, name, out _provider, out _entity); this.Session = DataAccessContextUtility.GetSession(() => _provider.Multiplexer.GetSource(this)); }
public DataCountContext(IDataAccess dataAccess, string name, ICondition condition, string member, object state = null) : base(dataAccess, name, condition, member, state) { DataAccessContextUtility.Initialize(dataAccess.Name, name, out _provider, out _entity); this.Session = DataAccessContextUtility.GetSession(() => _provider.Multiplexer.GetSource(this)); }
public DataUpsertContext(IDataAccess dataAccess, string name, bool isMultiple, object data, ISchema schema, object state = null) : base(dataAccess, name, isMultiple, data, schema, state) { DataAccessContextUtility.Initialize(dataAccess.Name, name, out _provider, out _entity); this.Session = DataAccessContextUtility.GetSession(() => _provider.Multiplexer.GetSource(this)); }