CodeHelper Class

 

Represents the helper methods for generating code.

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

Inheritance Hierarchy

System.Object
  Microsoft.Data.Entity.Design.CodeGeneration.CodeHelper
    Microsoft.Data.Entity.Design.CodeGeneration.CSharpCodeHelper
    Microsoft.Data.Entity.Design.CodeGeneration.VBCodeHelper

Syntax

public abstract class CodeHelper
public ref class CodeHelper abstract 
[<AbstractClass>]
type CodeHelper = class end
Public MustInherit Class CodeHelper

Constructors

Name Description
System_CAPS_protmethod CodeHelper()

Initializes a new instance of the CodeHelper class.

Properties

Name Description
System_CAPS_protproperty CodeProvider

Gets the provider for the language of the generated code.

Methods

Name Description
System_CAPS_protmethod AnonymousType(IEnumerable<String>)

Specifies the anonymous type lambda for the specified properties.

System_CAPS_pubmethod Attribute(IAttributeConfiguration)

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

System_CAPS_protmethod Attribute(String)

Returns an attribute with the specified body.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod MethodChain(IFluentConfiguration)

Gets the Code First Fluent API method chain used to apply the specified configuration.

System_CAPS_pubmethod Property(EdmMember)

Specifies the property identifier for the specified member.

System_CAPS_pubmethod Property(EntitySetBase)

Specifies the property identifier for the specified entity set.

System_CAPS_protmethod StringArray(IEnumerable<String>)

Gets the string array literal for the specified values.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Type(EdmProperty)

Specifies the type of the specified property.

System_CAPS_pubmethod Type(EdmType)

Specifies the type identifier for the specified type.

System_CAPS_pubmethod Type(EntityContainer)

Specifies the type identifier for the specified container.

System_CAPS_pubmethod Type(NavigationProperty)

Specifies the type of the specified navigation property.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Data.Entity.Design.CodeGeneration Namespace

Return to top