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"); }
public virtual IQueryable <T> AsQueryable() { return(_queryableStore != null && !this.InMemory ? _queryableStore.AsQueryable() : _items.AsQueryable()); }
public IQueryable <T> AsQueryable() { return(_queryableStore.AsQueryable()); }
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"); }