Ejemplo n.º 1
0
        public void IQueryableBiggyStore_Finds_Record()
        {
            _queryableStore = new SqlCeStore <Client>(_connectionStringName);
            var newClient = new Client()
            {
                LastName = "Atten", FirstName = "John", Email = "*****@*****.**"
            };

            _queryableStore.Add(newClient);
            var foundClient = _queryableStore.AsQueryable().FirstOrDefault(c => c.LastName == "Atten");

            Assert.True(foundClient.LastName == "Atten");
        }
Ejemplo n.º 2
0
 public virtual IQueryable <T> AsQueryable()
 {
     return(_queryableStore != null && !this.InMemory ? _queryableStore.AsQueryable() : _items.AsQueryable());
 }
Ejemplo n.º 3
0
 public IQueryable <T> AsQueryable()
 {
     return(_queryableStore.AsQueryable());
 }
Ejemplo n.º 4
0
 public void IQueryableBiggyStore_Finds_Record()
 {
     _queryableStore = new PGStore<Client>(_connectionStringName);
       var newClient = new Client() { LastName = "Atten", FirstName = "John", Email = "*****@*****.**" };
       _queryableStore.Add(newClient);
       var foundClient = _queryableStore.AsQueryable().FirstOrDefault(c => c.LastName == "Atten");
       Assert.True(foundClient.LastName == "Atten");
 }