Esempio n. 1
0
 static StringMemberRewritingExpressionVisitorTests()
 {
     context
         = ExtensionMethods
           .CreateServiceProvider(
               connectionString: @"Server=.\sqlexpress; Database=NORTHWND; Trusted_Connection=True")
           .GetService <NorthwindQueryContext>();
 }
Esempio n. 2
0
        static NullableMemberTests()
        {
            var impatient
                = new ImpatientQueryProvider(
                      new TestImpatientConnectionFactory(
                          @"Server=.\sqlexpress; Database=NORTHWND; Trusted_Connection=True"),
                      new DefaultImpatientQueryCache(),
                      new DefaultImpatientExpressionVisitorProvider());

            context = new NorthwindQueryContext(impatient);
        }