Skip to content

ObjectModelLoader class

Represents a data model loader

public class Korzh.EasyQuery.Linq.ObjectModelLoader
TypeNameDescription
BooleanIsLoadedFromType
TypeNameDescription
StringGetCollectionName(Type type)Used to get the name of the collection in context
voidLoadFromContext(DataModel model, Type type)Loads model from a context class.
voidLoadFromContextType(DataModel model, Type type, ContextLoadingOptions options)Loads model from context class.
voidLoadFromEntityType(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 .
voidLoadModelFromType(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 .