Class Inclusion<TEntity>
- Namespace
- Magicalizer.Data
- Assembly
- Magicalizer.dll
Inclusion of related entities into a query.
public class Inclusion<TEntity> where TEntity : class, IEntity
Type Parameters
TEntityEntity type.
- Inheritance
-
Inclusion<TEntity>
- Inherited Members
Constructors
Inclusion(Expression<Func<TEntity, object?>>)
Creates an inclusion from the expression.
public Inclusion(Expression<Func<TEntity, object?>> property)
Parameters
propertyExpression<Func<TEntity, object>>Expression of the property path.
Inclusion(string)
Creates an inclusion from the property path.
public Inclusion(string propertyPath)
Parameters
propertyPathstringProperty path (property names separated by dots).
Properties
PropertyPath
Property path of related entities to include (e.g. "Category.Products").
public string PropertyPath { get; }