MaxLengthConfiguration.GetAttributeBody Method
[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]
Returns the attribute body associated with the length configuration.
Namespace: Microsoft.Data.Entity.Design.CodeGeneration
Assembly: Microsoft.Data.Entity.Design (in Microsoft.Data.Entity.Design.dll)
Syntax
'Declaration
Public Overridable Function GetAttributeBody ( _
code As CodeHelper _
) As String
'Usage
Dim instance As MaxLengthConfiguration
Dim code As CodeHelper
Dim returnValue As String
returnValue = instance.GetAttributeBody(code)
public virtual string GetAttributeBody(
CodeHelper code
)
public:
virtual String^ GetAttributeBody(
CodeHelper^ code
)
abstract GetAttributeBody :
code:CodeHelper -> string
override GetAttributeBody :
code:CodeHelper -> string
public function GetAttributeBody(
code : CodeHelper
) : String
Parameters
- code
Type: Microsoft.Data.Entity.Design.CodeGeneration.CodeHelper
The code helper for the configuration.
Return Value
Type: System.String
The attribute body associated with the length configuration.
Implements
IAttributeConfiguration.GetAttributeBody(CodeHelper)