Beispiel #1
0
        public int Insert_advt_CMSCategory(Entity.advt_CMSCategory info, string[] Include, string[] Exclude)
        {
            List <DbParameter> l_parms     = new List <DbParameter>();
            StringBuilder      commandText = new StringBuilder();
            string             item_name   = string.Empty;
            string             item_value  = string.Empty;

            SqlHelper.Get_Inserte_Set(advt_CMSCategory_item_prop_a, Include, Exclude, info, ref item_name, ref item_value, ref l_parms);
            commandText.AppendLine("INSERT INTO [advt_CMSCategory] (" + item_name + ") VALUES (" + item_value + ")");
            return(DbHelper.PE.ExecuteNonQuery(CommandType.Text, commandText.ToString(), l_parms.ToArray()));
        }
Beispiel #2
0
        public int Update_advt_CMSCategory(Entity.advt_CMSCategory info, string[] Include, string[] Exclude)
        {
            List <DbParameter> l_parms     = new List <DbParameter>();
            StringBuilder      commandText = new StringBuilder();
            string             set_str     = string.Empty;

            SqlHelper.Get_Update_Set(advt_CMSCategory_key_a, advt_CMSCategory_item_prop_a, Include, Exclude, info, ref set_str, ref l_parms);
            commandText.AppendLine(" UPDATE [advt_CMSCategory]");
            commandText.AppendLine("   SET " + set_str);
            commandText.AppendLine("   " + SqlHelper.Get_Where_Str(advt_CMSCategory_key_a));
            return(DbHelper.PE.ExecuteNonQuery(CommandType.Text, commandText.ToString(), l_parms.ToArray()));
        }
Beispiel #3
0
        public static int Update_advt_CMSCategory(Entity.advt_CMSCategory info, string[] Include, string[] Exclude)
        {
            var data = Data.advt_CMSCategory.Update_advt_CMSCategory(info, Include, Exclude);

            return(data);
        }