예제 #1
0
 public virtual bool Insert(TDBModel obj)
 {
     this.CheckConstraint(obj);
     db.Set <TDBModel>().Add(obj);
     return(db.SaveChanges() > 0);
 }