示例#1
0
        public static string GetConnectionString()
        {
            string fileName;

            return(ConnectionStringMethods.GetConnectionString(out fileName));
        }
示例#2
0
 public DataContext()
     : base(ConnectionStringMethods.GetConnectionString())
 {
     Database.SetInitializer <DataContext>(null);
     this.Configuration.LazyLoadingEnabled = this.Configuration.ProxyCreationEnabled = false;
 }