Class IdAttribute
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
booltrue, if the property is an id, otherwise false
Properties
IsId
true, if the property is an id, otherwise false
public bool IsId { get; set; }