Skip to content

ObjectModelLoader class

Represents a data model loader

public class Korzh.EasyQuery.Linq.ObjectModelLoader

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

Assembly: Korzh.EasyQuery.Linq.dll

NameTypeDescription
ObjectModelLoader()void
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 .