Пример #1
0
        public EFProductRepository()
        {
            _context = new SportsStoreDbContext();
            var conState = _context.Database.Connection.State;

            _context.Database.Log = (c) =>
            {
                System.Diagnostics.Debug.Write(c);
                Console.WriteLine(c);
            };
        }
 public EFOrderRepository()
 {
     _context = new SportsStoreDbContext();
 }