protected void SetValueCall(string str, object obj) { if (this.Identify == DBOperationType.SELECT) { this.Identify = DBOperationType.UPDATE; } if (this.m_blnRecordModify) { if (!this.m_lstModifyFields.ContainsKey(str)) { this.m_lstModifyFields.Add(str, obj); } } }
public DBContextBase(DBOperationType dbType) { if (dbType == DBOperationType.Read) { _connstr = ConfigSettingHelper.GetConnectionStr(ConstArgs.ReadConnStrName); Init(); } if (dbType == DBOperationType.Write) { _connstr = ConfigSettingHelper.GetConnectionStr(ConstArgs.WriteConnStrName); Init(); } }
public DbContext(DBOperationType dbType) : base(dbType) { }