Exemplo n.º 1
0
        public static TestDataContext GetCurrentContext()
        {
            var context = new WebDbConnectorContext <DataContext>(new LinqToSqlWebDbConnector(new TestDataContext()));

            return(context.GetCurrentContext() as TestDataContext);
        }
Exemplo n.º 2
0
        public static SqlConnection GetCurrentContext()
        {
            var context = new WebDbConnectorContext <SqlConnection>(new SqlWebDbConnector("Test", true));

            return(context.GetCurrentContext());
        }
Exemplo n.º 3
0
        public static TestEntities GetCurrentContext()
        {
            var context = new WebDbConnectorContext <DbContext>(new EntityFrameworkNewWebDbConnector(new TestEntities()));

            return(context.GetCurrentContext() as TestEntities);
        }