コード例 #1
0
ファイル: BaseEntity.cs プロジェクト: yuyu2you/HZHBaseSystem
 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)
 {
 }