C# Class Madd0.AzureStorageDriver.SchemaBuilder

Provides the methods necessary to determining the storage account's schema and to building the typed data context .
显示文件 Open project: madd0/AzureStorageDriver

Public Methods

Method Description
GetSchemaAndBuildAssembly ( StorageAccountProperties properties, string driverFolder, AssemblyName name, string @namepace, string typeName ) : List

Gets the schema and builds the assembly.

Private Methods

Method Description
BuildAssembly ( AssemblyName name, string driverFolder, string code ) : void

Builds the assembly described by the AssemblyName.

GenerateCode ( string typeName, string @namespace, IEnumerable model ) : string

Generates the code to build the typed data context.

GetModel ( StorageAccountProperties properties ) : IEnumerable

Build a model of the current Azure storage account. This model will be used to generate the typed code as well as the schema needed by LINQPad.

GetSchema ( IEnumerable model ) : List

Transforms the model based on CloudTable instances into a schema based on ExplorerItem instances for LINQPad.

GetType ( EdmType type ) : string

Gets the C# type equivalent of an entity data model (Edm) type.

Method Details

GetSchemaAndBuildAssembly() public static method

Gets the schema and builds the assembly.
public static GetSchemaAndBuildAssembly ( StorageAccountProperties properties, string driverFolder, AssemblyName name, string @namepace, string typeName ) : List
properties StorageAccountProperties The current configuration.
driverFolder string The driver folder. Used to resolve dependencies.
name System.Reflection.AssemblyName The instace of the assembly being created.
@namepace string
typeName string Name of the type of the typed data context.
return List