Skip to main content

objectmodelloader-class

Represents a data model loader

public class Korzh.EasyQuery.Linq.ObjectModelLoader

Assembly: Korzh.EasyQuery.Linq.dll

Constructors

NameTypeDescription
ObjectModelLoader()void

Methods

NameTypeDescription
GetCollectionName(Type type)stringUsed to get the name of the collection in context
LoadFromContext(DataModel model, Type type)voidLoads model from a context class.
LoadFromContextType(DataModel model, Type type, ContextLoadingOptions options)voidLoads model from context class.
LoadFromEntityType(DataModel model, Type type, ContextLoadingOptions loadingOptions)voidLoads 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 .
LoadModelFromType(DataModel model, Type type)voidLoads 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 .