Skip to main content

entitygraph-class

Represents the entity graph created during the loading of the model from some context type Implements the Korzh.EasyQuery.ObjectGraph`1

public class Korzh.EasyQuery.EntityGraph
: ObjectGraph<Type>

Assembly: Korzh.EasyQuery.dll

Constructors

NameTypeDescription
EntityGraph()void

Properties

NameTypeDescription
ContextTypeTypeGets or sets the type of the context.
IsEmptyboolReturns if this graph is empty; otherwise, .

Methods

NameTypeDescription
GetCollectionName(Type type)stringUsed to get the name of the collection in context
GetEdgeInfo(ObjectModelType t1, ObjectModelType t2)EdgeInfoGets the information about some edge in entity graph (see Korzh.EasyQuery.EntityGraph for details).
GetNavigationPropertyName(Type from, Type to)stringGets the name of the navigation property.
SetCollectionName(Type type, string name)voidSets the name of the collection.
SetNavigationPropertyName(Type from, Type to, string name)voidSets the name of the navigation property.
UpdateEntityJoinInfo(Type outerType, Type innerType, string outerPropertyName, string innerPropertyName)voidUpdates the information about some edge (join) in the entity graph. This method adds new edge if it's not defined yet or update the existing one.