CSharpCodeHelper Class

 

Provides helper methods for generating C# 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

Syntax

public class CSharpCodeHelper : CodeHelper
public ref class CSharpCodeHelper : CodeHelper
type CSharpCodeHelper = 
    class
        inherit CodeHelper
    end
Public Class CSharpCodeHelper
    Inherits CodeHelper

Constructors

Name Description
System_CAPS_pubmethod CSharpCodeHelper()

Initializes a new instance of the CSharpCodeHelper class.

Properties

Name Description
System_CAPS_protproperty CodeProvider

Gets the code provider used to generate and compile C# code.(Overrides CodeHelper.CodeProvider.)

Methods

Name Description
System_CAPS_protmethod AnonymousType(IEnumerable<String>)

Gets the anonymous type lambda for the specified properties.(Overrides CodeHelper.AnonymousType(IEnumerable<String>).)

System_CAPS_pubmethod Attribute(IAttributeConfiguration)

Returns the data annotations attribute used to apply the specified configuration.(Inherited from CodeHelper.)

System_CAPS_protmethod Attribute(String)

Gets an attribute with the specified body.(Overrides CodeHelper.Attribute(String).)

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.(Inherited from CodeHelper.)

System_CAPS_pubmethod Property(EdmMember)

Specifies the property identifier for the specified member.(Inherited from CodeHelper.)

System_CAPS_pubmethod Property(EntitySetBase)

Specifies the property identifier for the specified entity set.(Inherited from CodeHelper.)

System_CAPS_protmethod StringArray(IEnumerable<String>)

Gets the string array literal for the specified values.(Overrides CodeHelper.StringArray(IEnumerable<String>).)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Type(EdmProperty)

Specifies the type of the specified property.(Inherited from CodeHelper.)

System_CAPS_pubmethod Type(EdmType)

Specifies the type identifier for the specified type.(Inherited from CodeHelper.)

System_CAPS_pubmethod Type(EntityContainer)

Specifies the type identifier for the specified container.(Inherited from CodeHelper.)

System_CAPS_pubmethod Type(NavigationProperty)

Specifies the type of the specified navigation property.(Inherited from CodeHelper.)

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