protected override DataContext GetDataContext()
        {
            if (context == null)
            {
                context = new LinqToVfpDataContext(GetConnectionString(), new TestContextWriter(this.TestContext));
            }

            return(context);
        }
Пример #2
0
        protected override DataContext GetDataContext()
        {
            if (context == null)
            {
                Uri uri = new Uri("http://localhost:12345/IQToolkitContribTest");
                host = new DataServiceHost(typeof(LinqToVfpDataService), new Uri[] { uri });
                host.Open();
                context = new LinqToVfpDataContext(uri, new TestContextWriter(this.TestContext));
            }

            return(context);
        }
 public LinqToVfpDataServiceContext(LinqToVfpDataContext context) : base(context.Provider)
 {
     this.context = context;
 }