Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public static bool Delete(DictionaryInfo dictionaryInfo)
        {
            const string sql = @"
            DELETE FROM T_DICTIONARY_INFO
            WHERE CODE=@Code

            ";

            return Dapper.Save(dictionaryInfo, sql);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 5
0
 public static bool UpdateDictionaryInfo(DictionaryInfo dictionaryInfo, out string msg)
 {
     if (!DictionaryInfoDal.Update(dictionaryInfo))
     {
         msg = "修改失败";
         return(false);
     }
     msg = "修改成功";
     return(true);
 }
Exemplo n.º 6
0
        public static bool Delete(DictionaryInfo dictionaryInfo)
        {
            const string sql = @"
DELETE FROM T_DICTIONARY_INFO
WHERE CODE=@Code

";

            return(Dapper.Save(dictionaryInfo, sql));
        }
Exemplo n.º 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));
        }
Exemplo n.º 8
0
 public static bool InsertDictionaryInfo(DictionaryInfo dictionaryInfo, out string msg)
 {
     if (!DictionaryInfoDal.Insert(dictionaryInfo))
     {
         msg = "新增失败";
         return(false);
     }
     msg = "新增成功";
     return(true);
 }
Exemplo n.º 9
0
 public static bool UpdateDictionaryInfo(DictionaryInfo dictionaryInfo, out string msg)
 {
     if (!DictionaryInfoDal.Update(dictionaryInfo))
     {
         msg = "修改失败";
         return false;
     }
     msg = "修改成功";
     return true;
 }
Exemplo n.º 10
0
 public static bool InsertDictionaryInfo(DictionaryInfo dictionaryInfo, out string msg)
 {
     if (!DictionaryInfoDal.Insert(dictionaryInfo))
     {
         msg = "新增失败";
         return false;
     }
     msg = "新增成功";
     return true;
 }
Exemplo n.º 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));
        }
Exemplo n.º 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);
        }
Exemplo n.º 13
0
 public static bool DeleteDictionaryInfo(DictionaryInfo dictionaryInfo)
 {
     return(DictionaryInfoDal.Delete(dictionaryInfo));
 }
Exemplo n.º 14
0
 public static bool DeleteDictionaryInfo(DictionaryInfo dictionaryInfo)
 {
     return DictionaryInfoDal.Delete(dictionaryInfo);
 }