示例#1
0
        private static int InsertUpdateDelete(TaiKhoanInfo taiKhoanInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_TaiKhoan,
                "@" + TableTaiKhoan.TenTaiKhoan,
                taiKhoanInfo.TenTaiKhoan, taiKhoanInfo.MatKhau, taiKhoanInfo.ChucNang, taiKhoanInfo.Quyen,
                (int)action);

            if (rs > 0 && Cache)
            {
                DataCache.RemoveCache(Key);
            }
            return(rs);
        }
示例#2
0
 public static int Delete(TaiKhoanInfo taiKhoanInfo)
 {
     return(InsertUpdateDelete(taiKhoanInfo, DataProviderAction.Delete));
 }