示例#1
0
 public void InsertArticle(Article newArticle)
 {
     newArticle.CreateTime = DateTime.Now;
     newArticle.ModifiedTime = DateTime.Now;
     db.Article.Add(newArticle);
     db.SaveChanges();
 }
示例#2
0
 public void SaveArticle(Article record)
 {
     record.ModifiedTime=DateTime.Now;
     db.SaveChanges();
 }