Table of Contents

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

TModel

Model 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

property Expression<Func<TModel, object>>

Expression of the property path.

Inclusion(string)

Creates an inclusion from the property path.

public Inclusion(string propertyPath)

Parameters

propertyPath string

Property path (property names separated by dots).

Properties

PropertyPath

Property path of related models to include (e.g. "Category.Products").

public string PropertyPath { get; }

Property Value

string