Example #1
0
 public void RemoveVideo(Movies video)
 {
     //db.Shi.Add(goods);
     db.Movies.Remove(video);
     db.SaveChanges();
 }
Example #2
0
 /// <summary>
 /// 增加回复评论
 /// </summary>
 /// <param name="NewsReply"></param>
 public void AddNewsReply(ReComment NewsReply)
 {
     db.ReComment.Add(NewsReply);
     db.SaveChanges();
 }
Example #3
0
 /// <summary>
 /// 增加新闻
 /// </summary>
 /// <param name="news"></param>
 public void AddNews(News news)
 {
     db.News.Add(news);
     db.SaveChanges();
 }
Example #4
0
 public void AddUserInfo(UserInfo userInfo)
 {
     db.UserInfo.Add(userInfo);
     db.SaveChanges();
 }
Example #5
0
 /// <summary>
 /// 增加新闻评论
 /// </summary>
 /// <param name="newsCom"></param>
 public void AddNewsCom(Comments newsCom)
 {
     db.Comments.Add(newsCom);
     db.SaveChanges();
 }