示例#1
0
        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));
        }
示例#2
0
        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));
        }
示例#3
0
        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);
        }
示例#4
0
 public int Edit(Seos model)
 {
     return(dal.Edit(model));
 }
示例#5
0
 public int Add(Seos model)
 {
     return(dal.Add(model));
 }
示例#6
0
        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));
        }
示例#7
0
        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));
        }
示例#8
0
 public int EditSeos(Seos seos)
 {
     return(seosm.EditSeos(seos));
 }
示例#9
0
 public int AddSeos(Seos seos)
 {
     return(seosm.AddSeos(seos));
 }