예제 #1
0
        public void AddRacer(YardRacers item)
        {
            var context = new TestDB();

            context.YardRacers.Add(item);

            context.SaveChanges();
        }
예제 #2
0
        public IEnumerable <YardRacers> GetAllRacers()
        {
            var context = new TestDB();

            return(context.YardRacers.Include("Cars").ToList());
        }