예제 #1
0
 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);
         }
     }
 }
예제 #2
0
        public DBContextBase(DBOperationType dbType)
        {
            if (dbType == DBOperationType.Read)
            {
                _connstr = ConfigSettingHelper.GetConnectionStr(ConstArgs.ReadConnStrName);
                Init();
            }

            if (dbType == DBOperationType.Write)
            {
                _connstr = ConfigSettingHelper.GetConnectionStr(ConstArgs.WriteConnStrName);
                Init();
            }
        }
예제 #3
0
 public DbContext(DBOperationType dbType)
     : base(dbType)
 {
 }