public FakeDbSet() { _data = new System.Collections.ObjectModel.ObservableCollection <TEntity>(); _query = _data.AsQueryable(); InitializePartial(); }
public FakeDbSet(params string[] primaryKeys) { _primaryKeys = typeof(TEntity).GetProperties().Where(x => primaryKeys.Contains(x.Name)).ToArray(); _data = new System.Collections.ObjectModel.ObservableCollection <TEntity>(); _query = _data.AsQueryable(); InitializePartial(); }