public int EditSeos(Seos seos) { string sql = "update Seos set Seos_Title = @Seos_Title,Seos_Keyword = @Seos_Keyword,Seos_Description=@Seos_Description,Seos_UpdateTime = @Seos_UpdateTime where Seos_Id = @Seos_Id"; SqlParameter[] param = { new SqlParameter("@Seos_Title", seos.Seos_Title), new SqlParameter("@Seos_Keyword", seos.Seos_Keyword), new SqlParameter("@Seos_Description", seos.Seos_Description), new SqlParameter("@Seos_UpdateTime", seos.UpdateTime), new SqlParameter("@Seos_Id", seos.Id) }; return(SqlHelper.ExecuteNonQuery(sql, param)); }
public int AddSeos(Seos seos) { string sql = "insert into Seos(Seos_Id,Seos_Title,Seos_Keyword,Seos_Description,Seos_DeleteId,Seos_CreateTime,Seos_UpdateTime)values(@Seos_Id,@Seos_Title,@Seos_Keyword,@Seos_Description,@Seos_DeleteId,@Seos_CreateTime,@Seos_UpdateTime)"; SqlParameter[] param = { new SqlParameter("@Seos_Id", seos.Id), new SqlParameter("@Seos_Title", seos.Seos_Title), new SqlParameter("@Seos_Keyword", seos.Seos_Keyword), new SqlParameter("@Seos_Description", seos.Seos_Description), new SqlParameter("@Seos_DeleteId", seos.DeleteId), new SqlParameter("@Seos_CreateTime", seos.CreateTime), new SqlParameter("@Seos_UpdateTime", seos.UpdateTime), }; return(SqlHelper.ExecuteNonQuery(sql, param)); }
public List <Seos> FillData(DataTable dt) { var list = new List <Seos>(); foreach (DataRow dr in dt.Rows) { var item = new Seos() { Id = Guid.Parse(dr["Seos_Id"].ToString()), Seos_Title = dr["Seos_Title"].ToString(), Seos_Keyword = dr["Seos_Keyword"].ToString(), Seos_Description = dr["Seos_Description"].ToString(), DeleteId = int.Parse(dr["Seos_DeleteId"].ToString()), UpdateTime = DateTime.Parse(dr["Seos_UpdateTime"].ToString()) }; list.Add(item); } return(list); }
public int Edit(Seos model) { return(dal.Edit(model)); }
public int Add(Seos model) { return(dal.Add(model)); }
public int Add(Seos model) { string sql = "insert into Seos(Seos_Id,Seos_Title,Seos_Keyword,Seos_Description,Seos_WebMenuId,Seos_DeleteId,Seos_CreateTime,Seos_UpdateTime) values(@Seos_Id,@Seos_Title,@Seos_Keyword,@Seos_Description,@Seos_WebMenuId,@Seos_DeleteId,@Seos_CreateTime,@Seos_UpdateTime)"; return(SqlHelper <Seos> .ExceuteNonQuery(sql, model)); }
public int Edit(Seos model) { string sql = "update Seos set Seos_Title=@Seos_Title,Seos_Keyword=@Seos_Keyword,Seos_Description=@Seos_Description,Seos_WebMenuId=@Seos_WebMenuId,Seos_UpdateTime=@Seos_UpdateTime where Seots_Id=@Seos_Id"; return(SqlHelper <Seos> .ExceuteNonQuery(sql, model)); }
public int EditSeos(Seos seos) { return(seosm.EditSeos(seos)); }
public int AddSeos(Seos seos) { return(seosm.AddSeos(seos)); }