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