Class KeyAttribute
Defines a key for the annotated entity.
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.Model.AttributedModel
Assembly: Kephas.Data.Model.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = true)]
public class KeyAttribute : Attribute
Constructors
| Improve this Doc View SourceKeyAttribute(String, KeyKind, String[])
Initializes a new instance of the KeyAttribute class.
Declaration
protected KeyAttribute(string name, KeyKind kind, string[] keyProperties)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The key name. |
KeyKind | kind | The key kind. |
System.String[] | keyProperties | The key properties. |
KeyAttribute(String, String[])
Initializes a new instance of the KeyAttribute class.
Declaration
public KeyAttribute(string name, string[] keyProperties)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The key name. |
System.String[] | keyProperties | The key properties. |
KeyAttribute(String[])
Initializes a new instance of the KeyAttribute class.
Declaration
public KeyAttribute(string[] keyProperties)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | keyProperties | The key properties. |
Properties
| Improve this Doc View SourceKeyProperties
Gets the key properties.
Declaration
public string[] KeyProperties { get; }
Property Value
Type | Description |
---|---|
System.String[] | The key properties. |
Kind
Gets the key kind.
Declaration
public KeyKind Kind { get; }
Property Value
Type | Description |
---|---|
KeyKind | The key kind. |
Name
Gets the key name. If not provided, a generated name will be used.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The key name. |