C# Class Breeze.PocoMetadata.Generator

Class that loads the assembly and calls the PocoMetadataBuilder
Exibir arquivo Open project: Breeze/breeze.tooling

Public Methods

Method Description
Generate ( Assembly assembly, EntityDescriptor descriptor ) : Metadata

Generate metadata from the given Assembly.

Generate ( AssemblyName assemblyName, EntityDescriptor descriptor ) : Metadata

Load the assembly from the given AssemblyName, then call Generate(Assembly, EntityDescriptor)

Generate ( string assemblyFileName, EntityDescriptor descriptor ) : Metadata

Load the assembly from the given file, then call Generate(Assembly, EntityDescriptor)

Private Methods

Method Description
GetTypesFromAssembly ( Assembly assembly ) : System.Type[]

Method Details

Generate() public static method

Generate metadata from the given Assembly.
public static Generate ( Assembly assembly, EntityDescriptor descriptor ) : Metadata
assembly System.Reflection.Assembly Assembly containing entity types
descriptor EntityDescriptor Descriptor used to evaluate types and resolve metadata
return Metadata

Generate() public static method

Load the assembly from the given AssemblyName, then call Generate(Assembly, EntityDescriptor)
public static Generate ( AssemblyName assemblyName, EntityDescriptor descriptor ) : Metadata
assemblyName System.Reflection.AssemblyName
descriptor EntityDescriptor
return Metadata

Generate() public static method

Load the assembly from the given file, then call Generate(Assembly, EntityDescriptor)
public static Generate ( string assemblyFileName, EntityDescriptor descriptor ) : Metadata
assemblyFileName string
descriptor EntityDescriptor
return Metadata