示例#1
0
 public void Update(Article article)
 {
     if (article != null)
     {
         Context.Entry(article).State = EntityState.Modified;
     }
 }
示例#2
0
 public void Create(Article article)
 {
     if (article != null)
     {
         Context.Articles.Add(article);
     }
 }