Method OfType
OfType<TDerivedDocument>()
Returns a filtered collection that appears to contain only documents of the derived type. All operations using this filtered collection will automatically use discriminators as necessary.
public abstract IFilteredMongoCollection<TDerivedDocument> OfType<TDerivedDocument>() where TDerivedDocument : TDocument
Returns
- IFilteredMongoCollection<TDerivedDocument>
A filtered collection.
Type Parameters
TDerivedDocument
The type of the derived document.