Inheritance: DbContext
Exemplo n.º 1
0
        public void Initialize()
        {
            stopwatch.Stop();
            Console.WriteLine(stopwatch.ElapsedMilliseconds);
            stopwatch.Reset();
            stopwatch.Start();
            db = new Northwind();
            stopwatch.Stop();
            Console.WriteLine(stopwatch.ElapsedMilliseconds);

            var connType = db.DbConfiguration.DbProviderName;

            Console.WriteLine(connType);
        }
Exemplo n.º 2
0
 public void Initialize()
 {
     db = new Northwind();
     //DbConfiguration.InitializeDLinq<System.Data.Linq.ModifiedMemberInfo>();
 }
Exemplo n.º 3
0
 public void Initialize()
 {
     db = new Northwind();
     //db.Orders.Delete(p => p.CustomerID.StartsWith("XX"));
     //db.Customers.Delete(p => p.CustomerID.StartsWith("XX"));
 }