ModelLinqExtensions class

public static class Korzh.EasyQuery.Linq.ModelLinqExtensions

Static Methods

Type Name Description
void LoadFromContextType(this DataModel model, Type context) 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.
void LoadFromContextType(this DataModel model, Type context, ContextLoadingOptions loadingOptions) 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.
void LoadFromEntityType(this DataModel model, Type type) 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 .
void LoadFromEntityType(this DataModel model, Type type, ContextLoadingOptions loadingOptions) 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 .