/// <summary> /// 上下文初始化器(只赋值,不初始化,有可能被重复创建两次) /// </summary> /// <param name="contextType">外部上下文类型</param> /// <param name="contextConnection">上下文数据库连接信息</param> public InternalContext(Type contextType, ContextConnection contextConnection) { this.ContextType = contextType; this._contextConnection = contextConnection; this.IsMergeCommand = true; }
/// <summary> /// 上下文初始化器(只赋值,不初始化,有可能被重复创建两次) /// </summary> /// <param name="contextType">外部上下文类型</param> /// <param name="isUnitOfWork">是否启用单元工作模式</param> /// <param name="contextConnection">上下文数据库连接信息</param> public InternalContext(Type contextType, bool isUnitOfWork, ContextConnection contextConnection = null) { this.ContextType = contextType; this.IsUnitOfWork = isUnitOfWork; this.ContextConnection = contextConnection; }