Beispiel #1
0
        public void Delete(int id)
        {
            Team team = new Team {
                Id = id
            };

            context.DetachLocal(team);
            context.Team.Remove(team);
        }
Beispiel #2
0
        public void Delete(int id)
        {
            Footballer footballer = new Footballer {
                Id = id
            };

            context.DetachLocal(footballer);
            context.Footballer.Remove(footballer);
        }