ModelLinqExtensions class

Contains different extension functions for loading data model from types.

public static class Korzh.EasyQuery.Linq.ModelLinqExtensions

Package: Korzh.EasyQuery.Linq (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.Linq.dll

Static Methods

Name Type Description
AddUpdateLinqOperator(this DataModel model, string id, string caption, string format, Func<Expression, IEnumerable<Expression>, Expression> linqExprResolver, DataKind kind = 0, OperatorGroup group = null) LinqOperator
LoadFromContextType(this DataModel model, Type context) void Loads model from some context class. All IEnumerable properties of this class will be represented as entities in result model. All primitive type properties of generic type parameter class for each such IEnumerable will be added as attributes of corresponding entity.
LoadFromContextType(this DataModel model, Type context, ContextLoadingOptions loadingOptions) void Loads model from some context class. All IEnumerable properties of this class will be represented as entities in result model. All primitive type properties of generic type parameter class for each such IEnumerable will be added as attributes of corresponding entity.
LoadFromEntityType(this DataModel model, Type type) void Loads model from some type (class). All properties of this class with primitive types will be added as attributes of the root entity. All complex type properties - as sub-entities and so on recursively .
LoadFromEntityType(this DataModel model, Type type, ContextLoadingOptions loadingOptions) void Loads model from some type (class). All properties of this class with primitive types will be added as attributes of the root entity. All complex type properties - as sub-entities and so on recursively .