Method Include
Include(FieldDefinition<TSource>)
Creates a projection that includes a field.
public ProjectionDefinition<TSource> Include(FieldDefinition<TSource> field)
Parameters
field
FieldDefinition<TSource>The field.
Returns
- ProjectionDefinition<TSource>
An inclusion projection.
Include(Expression<Func<TSource, object>>)
Creates a projection that includes a field.
public ProjectionDefinition<TSource> Include(Expression<Func<TSource, object>> field)
Parameters
field
Expression<Func<TSource, object>>The field.
Returns
- ProjectionDefinition<TSource>
An inclusion projection.