Пример #1
0
        public override void Update(Bowler bowler)
        {
            db.Bowlers.Attach(bowler);
            var entry = db.Entry(bowler);

            entry.Property(p => p.Name).IsModified = true;
            db.SaveChanges();
        }
Пример #2
0
 public int Save()
 {
     return(db.SaveChanges());
 }