C# Class Bamboo.Prevalence.VersionMigration.MigrationContext

MigrationContext.
Mostra file Open project: bamboo/Bamboo.Prevalence Class Usage Examples

Public Methods

Method Description
ChangeType ( object value, Type conversionType ) : object
GetSerializableFields ( Type type ) : System.Reflection.FieldInfo[]
GetTypeMapping ( Type type ) : TypeMapping
HasInitializers ( Type type ) : bool
Migrate ( ) : void
MigrationContext ( Bamboo.Prevalence.VersionMigration.MigrationProject project ) : System
SetCurrentObjectField ( string name, object value ) : void

Same as InitializerHelper.SetField(CurrentObject, name, value).

Trace ( string format ) : void

Private Methods

Method Description
BuildSerializableFieldsArray ( Type type ) : System.Reflection.FieldInfo[]
CompileAndInstallScriptEventHandlers ( ) : void
CreateDirectoryIfNeeded ( string directory ) : void
CreateTargetFile ( ) : FileStream
EnterField ( FieldInfo field ) : void
EnterObject ( object obj, SerializationInfo info ) : void
GetCreationFileMode ( ) : FileMode
HandleResolveAssembly ( object sender, ResolveEventArgs e ) : Assembly
InstallAssemblyResolver ( ) : void
LeaveField ( ) : void
LeaveObject ( ) : void
LoadMainAssembly ( ) : void
LoadMigrationPlan ( ) : void
ReadObject ( ) : object
UninstallAssemblyResolver ( ) : void
WriteObject ( object graph ) : void

Method Details

ChangeType() public method

public ChangeType ( object value, Type conversionType ) : object
value object
conversionType System.Type
return object

GetSerializableFields() public method

public GetSerializableFields ( Type type ) : System.Reflection.FieldInfo[]
type System.Type
return System.Reflection.FieldInfo[]

GetTypeMapping() public method

public GetTypeMapping ( Type type ) : TypeMapping
type System.Type
return TypeMapping

HasInitializers() public method

public HasInitializers ( Type type ) : bool
type System.Type
return bool

Migrate() public method

public Migrate ( ) : void
return void

MigrationContext() public method

public MigrationContext ( Bamboo.Prevalence.VersionMigration.MigrationProject project ) : System
project Bamboo.Prevalence.VersionMigration.MigrationProject
return System

SetCurrentObjectField() public method

Same as InitializerHelper.SetField(CurrentObject, name, value).
public SetCurrentObjectField ( string name, object value ) : void
name string
value object
return void

Trace() public method

public Trace ( string format ) : void
format string
return void