Inheritance: DbContext
        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);
        }
示例#2
0
 public void Initialize()
 {
     db = new Northwind();
     //DbConfiguration.InitializeDLinq<System.Data.Linq.ModifiedMemberInfo>();
 }
示例#3
0
 public void Initialize()
 {
     db = new Northwind();
     //db.Orders.Delete(p => p.CustomerID.StartsWith("XX"));
     //db.Customers.Delete(p => p.CustomerID.StartsWith("XX"));
 }