Пример #1
0
 /// <summary>
 /// 初始化MapperDbContext类的新实例
 /// </summary>
 public MapperDbContext(IOptions <EntityMapperOptions> options)
 {
     Check.IfNullOrZero(options);
     _options = options.Value;
     _options.TransactionControl.RegisterCommit(Commit);
     _options.TransactionControl.RegisterRollback(Rollback);
 }
Пример #2
0
        internal PredicateExpressionTranslator(IOptions <EntityMapperOptions> options)
        {
            Check.IfNullOrZero(options);

            _options            = options.Value;
            _parameterNameStack = new Stack <String>();
            _predicateTypeStack = new Stack <PredicateType>();

            _aliasMapper            = new List <KeyValuePair <String, String> >();
            _statementResultBuilder = new StatementResultBuilder();
        }
Пример #3
0
 public EntityMapper(IOptions <EntityMapperOptions> options, IEnumerable <IEntityMapperExecutor> entityMapperExecutors)
 {
     _options = options.Value;
     _entityMapperExecutors = entityMapperExecutors;
 }