• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class PrimaryKeyAttribute

Inheritance
System.Object
PrimaryKeyAttribute
Namespace: DotNetNuke.ComponentModel.DataAnnotations
Assembly: DotNetNuke.dll
Syntax
public class PrimaryKeyAttribute : Attribute

Constructors

| Improve this Doc View Source

PrimaryKeyAttribute(String, String)

Initializes a new instance of the PrimaryKeyAttribute class.

Declaration
public PrimaryKeyAttribute(string columnName, string propertyName)
Parameters
Type Name Description
System.String columnName
System.String propertyName
| Improve this Doc View Source

PrimaryKeyAttribute(String)

Initializes a new instance of the PrimaryKeyAttribute class.

Declaration
public PrimaryKeyAttribute(string columnName)
Parameters
Type Name Description
System.String columnName

Properties

| Improve this Doc View Source

AutoIncrement

Declaration
public bool AutoIncrement { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ColumnName

Declaration
public string ColumnName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

PropertyName

Declaration
public string PropertyName { get; set; }
Property Value
Type Description
System.String

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS