Class KeyProperty
A property that makes up a part of a PrimaryKey
Namespace: Seltzr.OrmBase
Assembly: Seltzr.OrmBase.dll
Syntax
C#
public class KeyProperty
Constructors
Initializes a new instance of the KeyProperty class, with the name set to the name of the given PropertyInfo
C#
public KeyProperty(PropertyInfo propertyInfo)
Parameters
propertyInfo
PropertyInfo
The key property
Initializes a new instance of the KeyProperty class.
C#
public KeyProperty(string name, PropertyInfo propertyInfo)
Parameters
name
String
The name of the property
propertyInfo
PropertyInfo
The key property
Properties
Gets the name of the key property
C#
public string Name { get; }
Property Value
StringGets the key property
C#
public PropertyInfo PropertyInfo { get; }