Skip to content

Entity class

Represents one entity

public class Korzh.EasyQuery.Entity
: IComparable<Entity>
TypeNameDescription
Entityparent
TypeNameDescription
EntityAttrStoreAttributesList of Attributes that belong to this entity.
StringDbSetNameGets or sets the name of the DbSet associated with entity
StringDescriptionGets or sets the description.
StringIdGets or sets the entity identifier
BooleanIsEmptyGets a value indicating whether this instance is empty.
BooleanIsRootGets a value indicating whether this entity is a root entity.
DataModelModelGets the model.
StringNameGets or sets the name of the entity.
TypeObjTypeGets or sets the type of the entity.
EntityParentGets the parent entity.
EntityStoreSubEntitiesList of sub entities that belong to this entity.
StringTypeNameGets or sets the path for building query for complex types
BooleanUseInConditionsGets or sets a value indicating whether the attribute can be used in query conditions.
BooleanUseInResultGets or sets a value indicating whether the attribute can be used in result columns (SELECT clause).
BooleanUseInSortingGets or sets a value indicating whether the attribute can be used in sorting.
ObjectUserDataGets or sets the user data object associated with entity.
TypeNameDescription
EntityAttrFindAttribute(EntityAttrProp what, String val)Finds the attribute by its ID.
EntityFindSubEntity(String entityName)Finds a sub-entity in current entity by its name.
EntityAttrGetFirstLeaf()Gets the first attribute in all attributes and sub-entities of the current entity.
StringGetFullName(String separator)Gets the full name.
voidLoadAttribute(String propname, String propvalue)Loads the attribute of the entity.
voidLoadFromXmlReader(XmlReader reader)Loads entity from XML reader.
voidLoadNodes(XmlReader reader)Loads the root nodes of the entity.
voidOnModelAssignment()Called when the entity is inserted into model.
voidSaveAttributes(XmlWriter writer)Saves the entity attributes.
voidSaveNodes(XmlWriter writer)Saves the entity nodes.
voidSaveToXmlWriter(XmlWriter writer)Saves the entity to XML writer.
voidScan(Action<Entity> entityHandler, Action<EntityAttr> attrHandler, Boolean processRoot = True)Scans all child entities and attributes (including this one one) calls entityHandler and attrHanlder delegates (correspondingly) for each of them