CodeHelper.Attribute Method

 

Returns the data annotations attribute used to apply.

Namespace:   Microsoft.Data.Entity.Design.CodeGeneration
Assembly:  Microsoft.Data.Entity.Design (in Microsoft.Data.Entity.Design.dll)

NameDescription
System_CAPS_pubmethodAttribute(IAttributeConfiguration)

Returns the data annotations attribute used to apply the specified configuration.

System_CAPS_protmethodAttribute(String)

Returns an attribute with the specified body.


CodeHelper.Attribute Method (IAttributeConfiguration)

Returns the data annotations attribute used to apply the specified configuration.

public string Attribute(
	IAttributeConfiguration configuration
)

Parameters

configuration
Type: Microsoft.Data.Entity.Design.CodeGeneration.IAttributeConfiguration

The configuration.

Return Value

Type: System.String

The data annotations attribute used to apply the specified configuration.


CodeHelper.Attribute Method (String)

Returns an attribute with the specified body.

protected abstract string Attribute(
	string attributeBody
)

Parameters

attributeBody
Type: System.String

The body of the attribute.

Return Value

Type: System.String

The attribute.