Table of Contents

Class IdAttribute

Namespace
NMF.Models
Assembly
NMF.Models.dll

Marks a property as an id

[AttributeUsage(AttributeTargets.Property)]
public class IdAttribute : Attribute
Inheritance
IdAttribute
Inherited Members

Constructors

IdAttribute()

Creates a new instance

public IdAttribute()

IdAttribute(bool)

Creates a new instance

public IdAttribute(bool isId)

Parameters

isId bool

true, if the property is an id, otherwise false

Properties

IsId

true, if the property is an id, otherwise false

public bool IsId { get; set; }

Property Value

bool