CodeHelper.Attribute Method
Returns the data annotations attribute used to apply.
Assembly: Microsoft.Data.Entity.Design (in Microsoft.Data.Entity.Design.dll)
Name | Description | |
---|---|---|
![]() | Attribute(IAttributeConfiguration) | Returns the data annotations attribute used to apply the specified configuration. |
![]() | Attribute(String) | Returns an attribute with the specified body. |
CodeHelper.Attribute Method (IAttributeConfiguration)
Returns the data annotations attribute used to apply the specified configuration.
Parameters
- configuration
-
Type:
Microsoft.Data.Entity.Design.CodeGeneration.IAttributeConfiguration
The configuration.
Return Value
Type: System.StringThe data annotations attribute used to apply the specified configuration.
CodeHelper.Attribute Method (String)
Returns an attribute with the specified body.
Parameters
- attributeBody
-
Type:
System.String
The body of the attribute.