public TModel Concrete(IMonCollection <TModel> collection) { if (collection == null) { throw new ArgumentNullException(nameof(collection)); } return(collection.FindOne(x => x.Id.Equals(this.Id))); }
public QueryBuilder(IMonCollection <TModel> collection) { this.Collection = collection; }