Class PrimaryKeyAttribute
Inheritance
PrimaryKeyAttribute
Assembly: DotNetNuke.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct)]
public class PrimaryKeyAttribute : Attribute, _Attribute
Constructors
PrimaryKeyAttribute(string)
Declaration
public PrimaryKeyAttribute(string columnName)
Parameters
| Type |
Name |
Description |
| string |
columnName |
|
PrimaryKeyAttribute(string, string)
Declaration
public PrimaryKeyAttribute(string columnName, string propertyName)
Parameters
Properties
AutoIncrement
Declaration
public bool AutoIncrement { get; set; }
Property Value
ColumnName
Declaration
public string ColumnName { get; set; }
Property Value
PropertyName
Declaration
public string PropertyName { get; set; }
Property Value
Implements
Extension Methods