Click or drag to resize
EntityRef Class
Zet Universe

[This is preliminary documentation and is subject to change.]

Reference to Entity. This is a 1:1 relationship.
Inheritance Hierarchy
SystemObject
  ZU.SemanticEntityRef

Namespace: ZU.Semantic
Assemblies:  ZU.Core.Developer (in ZU.Core.Developer.dll) Version: 2.0.5976.27963
  ZU.Core.Developer (in ZU.Core.Developer.dll) Version: 2.0.5976.27963
Syntax
C#
public class EntityRef : IComparable

The EntityRef type exposes the following members.

Constructors
  NameDescription
Public methodEntityRef
Initializes a new instance of the EntityRef class
Top
Properties
  NameDescription
Public propertyAgentIdChanger
Specifies the user OR app (we can figure out user by using State - Extracted/Entered; thus UidChanger will either use App/Account as Id, or User's Id)
Public propertyConfidence
Confidence
Public propertyDirection
Direction: To or From To means that relationship starts on this entity (THIS entity "is ..." for REFERENCED entity) From means that relationship starts on referenced entity (REFERENCED entity "is ..." for THIS entity) (e.g., "Referenced Entity" "Is Author Of" "another entity", or "another entity" "Is Sent By" "Referenced Entity")
Public propertyEntityId
Entity's Id
Public propertyModelId
Entity's Model Id
Public propertyRelation
Relation: e.g., "Is Author Of", or "Is Sent By", etc. As we want the system to be extendable, we should not specify kinds of things using hard coding, but by using strings (via the Constants)
Public propertyRelationshipEntityId
(Optional) Used to define a given Relationship
Public propertyRelationshipModelId
(Optional) Used to define a given Relationship
Public propertyState
This allows us to cheaply identify not only if this fragment was extracted automatically or created manually, but also identify if it is deleted or not
Public propertyTLChange
Top
Methods
  NameDescription
Public methodCompareTo
Public methodEquals(Object) (Overrides ObjectEquals(Object).)
Public methodEquals(IEntity)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsEmpty
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodIdToShortGuid (Defined by EntityRefExtensions.)
Public Extension MethodIdToShortString (Defined by EntityRefExtensions.)
Public Extension MethodIsLive (Defined by EntityRefExtensions.)
Top
See Also