public void Setup()
        {
            _context = new TestDataContext(_connectionString.FormattedConnectionString);
            _context.DeferredLoadingEnabled = false;

            _findWhereTestIntIs = CompiledQuery.Compile<TestDataContext, int, IEnumerable<TestEntity>>
            (
                (context, testInt) => context.TestEntities
                .Where<TestEntity>(t => t.TestInt == testInt)
            );

            _find = CompiledQuery.Compile<TestDataContext, int, TestEntity>
            (
                (context, id) => context.TestEntities
                .SingleOrDefault(t => t.Id == id)
            );
        }
 public void Setup()
 {
     _context = new TestDataContext(_connectionString.FormattedConnectionString);
 }
 public void Setup()
 {
     _context = new TestDataContext(_connectionString.FormattedConnectionString);
 }
 public void Setup()
 {
     _context = new TestDataContext(_connectionString.FormattedConnectionString);
     _context.DeferredLoadingEnabled = false;
     _context.ObjectTrackingEnabled = false;
 }
Exemplo n.º 5
0
 public void Setup()
 {
     _context = new TestDataContext(_connectionString.FormattedConnectionString);
     _context.DeferredLoadingEnabled = false;
     _context.ObjectTrackingEnabled  = false;
 }