Class Key
Definition class for entity keys.
Inheritance
System.Object
System.Dynamic.DynamicObject
Key
Implements
System.Dynamic.IDynamicMetaObjectProvider
Inherited Members
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Kephas.Data.Model.Elements
Assembly: Kephas.Data.Model.dll
Syntax
public class Key : ModelElementBase<IKey>, IConstructibleElement, IKey, IModelElement, INamedElement, IAggregatedElementInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider
Constructors
| Improve this Doc View SourceKey(IModelConstructionContext, String, KeyKind, String[])
Initializes a new instance of the Key class.
Declaration
public Key(IModelConstructionContext constructionContext, string name, KeyKind kind, string[] keyProperties)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
System.String | name | The name. |
KeyKind | kind | The key kind. |
System.String[] | keyProperties | The key properties. |
Properties
| Improve this Doc View SourceKeyProperties
Gets the entity properties in the proper order which are part of the key.
Declaration
public IProperty[] KeyProperties { get; }
Property Value
Type | Description |
---|---|
IProperty[] | The key properties. |
Kind
Gets the key kind.
Declaration
public KeyKind Kind { get; }
Property Value
Type | Description |
---|---|
KeyKind | The key kind. |
Methods
| Improve this Doc View SourceOnCompleteConstruction(IModelConstructionContext)
Called when the construction is complete.
Declaration
protected override void OnCompleteConstruction(IModelConstructionContext constructionContext)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
Overrides
Kephas.Model.Elements.ModelElementBase<Kephas.Data.Model.IKey>.OnCompleteConstruction(Kephas.Model.Construction.IModelConstructionContext)
Implements
System.Dynamic.IDynamicMetaObjectProvider