示例#1
0
        public static bool Insert(DictionaryInfo dictionaryInfo, SqlConnection conn, SqlTransaction trans)
        {
            const string sql = @"
            INSERT INTO T_DICTIONARY_INFO(CODE,NAME,OWNER,CATEGORY)
            VALUES(@Code,@Name,@Owner,@Category)

            ";

            return Dapper.Save(dictionaryInfo, sql, conn, trans);
        }
示例#2
0
        public static bool Delete(DictionaryInfo dictionaryInfo)
        {
            const string sql = @"
            DELETE FROM T_DICTIONARY_INFO
            WHERE CODE=@Code

            ";

            return Dapper.Save(dictionaryInfo, sql);
        }
示例#3
0
        public static bool Delete(DictionaryInfo dictionaryInfo, SqlConnection conn, SqlTransaction trans)
        {
            const string sql = @"
            DELETE FROM T_DICTIONARY_INFO
            WHERE CODE=@Code

            ";

            return Dapper.Save(dictionaryInfo, sql, conn, trans);
        }
示例#4
0
        public static bool Delete(DictionaryInfo dictionaryInfo, SqlConnection conn, SqlTransaction trans)
        {
            const string sql = @"
DELETE FROM T_DICTIONARY_INFO
WHERE CODE=@Code

";

            return(Dapper.Save(dictionaryInfo, sql, conn, trans));
        }
示例#5
0
 public static bool UpdateDictionaryInfo(DictionaryInfo dictionaryInfo, out string msg)
 {
     if (!DictionaryInfoDal.Update(dictionaryInfo))
     {
         msg = "修改失败";
         return(false);
     }
     msg = "修改成功";
     return(true);
 }
示例#6
0
        public static bool Delete(DictionaryInfo dictionaryInfo)
        {
            const string sql = @"
DELETE FROM T_DICTIONARY_INFO
WHERE CODE=@Code

";

            return(Dapper.Save(dictionaryInfo, sql));
        }
示例#7
0
        public static bool Insert(DictionaryInfo dictionaryInfo, SqlConnection conn, SqlTransaction trans)
        {
            const string sql = @"
INSERT INTO T_DICTIONARY_INFO(CODE,NAME,OWNER,CATEGORY)
VALUES(@Code,@Name,@Owner,@Category)

";

            return(Dapper.Save(dictionaryInfo, sql, conn, trans));
        }
示例#8
0
 public static bool InsertDictionaryInfo(DictionaryInfo dictionaryInfo, out string msg)
 {
     if (!DictionaryInfoDal.Insert(dictionaryInfo))
     {
         msg = "新增失败";
         return(false);
     }
     msg = "新增成功";
     return(true);
 }
示例#9
0
 public static bool UpdateDictionaryInfo(DictionaryInfo dictionaryInfo, out string msg)
 {
     if (!DictionaryInfoDal.Update(dictionaryInfo))
     {
         msg = "修改失败";
         return false;
     }
     msg = "修改成功";
     return true;
 }
示例#10
0
 public static bool InsertDictionaryInfo(DictionaryInfo dictionaryInfo, out string msg)
 {
     if (!DictionaryInfoDal.Insert(dictionaryInfo))
     {
         msg = "新增失败";
         return false;
     }
     msg = "新增成功";
     return true;
 }
示例#11
0
        public static bool Update(DictionaryInfo dictionaryInfo, SqlConnection conn, SqlTransaction trans)
        {
            const string sql = @"
UPDATE T_DICTIONARY_INFO
SET NAME=@Name,OWNER=@Owner,CATEGORY=@Category
WHERE CODE=@Code

";

            return(Dapper.Save(dictionaryInfo, sql, conn, trans));
        }
示例#12
0
        public static bool Update(DictionaryInfo dictionaryInfo, SqlConnection conn, SqlTransaction trans)
        {
            const string sql = @"
            UPDATE T_DICTIONARY_INFO
            SET NAME=@Name,OWNER=@Owner,CATEGORY=@Category
            WHERE CODE=@Code

            ";

            return Dapper.Save(dictionaryInfo, sql, conn, trans);
        }
示例#13
0
 public static bool DeleteDictionaryInfo(DictionaryInfo dictionaryInfo)
 {
     return(DictionaryInfoDal.Delete(dictionaryInfo));
 }
示例#14
0
 public static bool DeleteDictionaryInfo(DictionaryInfo dictionaryInfo)
 {
     return DictionaryInfoDal.Delete(dictionaryInfo);
 }