Exemple #1
0
 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));
 }
Exemple #2
0
 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));
 }
Exemple #3
0
 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));
 }