Class Inclusion<TModel>
- Namespace
- Magicalizer.Domain
- Assembly
- Magicalizer.dll
Inclusion of related models into a query.
public class Inclusion<TModel> : IInclusion<TModel> where TModel : class, IModel
Type Parameters
TModelModel type.
- Inheritance
-
Inclusion<TModel>
- Implements
-
IInclusion<TModel>
- Inherited Members
Constructors
Inclusion(Expression<Func<TModel, object?>>)
Creates an inclusion from the expression.
public Inclusion(Expression<Func<TModel, object?>> property)
Parameters
propertyExpression<Func<TModel, 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 models to include (e.g. "Category.Products").
public string PropertyPath { get; }