예제 #1
0
 public virtual bool Create(T model)
 {
     db.Set <T>().Add(model);
     return(db.SaveChanges() > 0);
 }