/// <summary> /// 初始化MapperDbContext类的新实例 /// </summary> public MapperDbContext(IOptions <EntityMapperOptions> options) { Check.IfNullOrZero(options); _options = options.Value; _options.TransactionControl.RegisterCommit(Commit); _options.TransactionControl.RegisterRollback(Rollback); }
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(); }
public EntityMapper(IOptions <EntityMapperOptions> options, IEnumerable <IEntityMapperExecutor> entityMapperExecutors) { _options = options.Value; _entityMapperExecutors = entityMapperExecutors; }