C# Class Open.Core.Cloud.TableStorage.CodeGeneration.TableEntityTemplate

Generates code for a single backing entity for a TableStorageModel.
Datei anzeigen Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Methods

Method Description
GetClassName ( Type modelType ) : string

Retrieves the class name for the generated entity.

GetContextName ( Type modelType ) : string

Retrieves the context name for the generated entity.

GetInterfaceName ( Type modelType ) : string

Retrieves the interface name for the generated entity.

GetNamespace ( Type modelType ) : string

Retrieves the namespace to put a generated entity within.

TableEntityTemplate ( ) : System

Constructor.

Private Methods

Method Description
EmitProperty ( PropertyInfo property ) : bool
GetProperties ( ) : IEnumerable

Method Details

GetClassName() public static method

Retrieves the class name for the generated entity.
public static GetClassName ( Type modelType ) : string
modelType System.Type The type of the model.
return string

GetContextName() public static method

Retrieves the context name for the generated entity.
public static GetContextName ( Type modelType ) : string
modelType System.Type The type of the model.
return string

GetInterfaceName() public static method

Retrieves the interface name for the generated entity.
public static GetInterfaceName ( Type modelType ) : string
modelType System.Type The type of the model.
return string

GetNamespace() public static method

Retrieves the namespace to put a generated entity within.
public static GetNamespace ( Type modelType ) : string
modelType System.Type The type of the model.
return string

TableEntityTemplate() public method

Constructor.
public TableEntityTemplate ( ) : System
return System