C# Class Zetbox.App.Packaging.Importer

Show file Open project: daszat/zetbox

Public Methods

Method Description
Deploy ( IZetboxContext ctx ) : void
LoadFromXml ( IZetboxContext ctx ) : IEnumerable

Loads a database from the specified filename into the specified context.

LoadFromXml ( IZetboxContext ctx, Stream stream, string streamDescription ) : IEnumerable

Private Methods

Method Description
FindObject ( IZetboxContext ctx, IPersistenceObject>.Dictionary objects, System.Guid exportGuid, InterfaceType ifType ) : IPersistenceObject
ImportElement ( IZetboxContext ctx, IPersistenceObject>.Dictionary objects, IPackageProvider s ) : IPersistenceObject
LoadGuids ( IZetboxContext ctx, IPackageProvider providers ) : List>.Dictionary
LoadModuleNames ( IPackageProvider s ) : IEnumerable
MigrateTypeNameMapping ( string ifTypeName ) : string

Map from pre-migration class names to current ones.

This mapping keeps the saved schema XML in the destination database valid. Without this we couldn't deploy/migrate from the old schema to the new one.

PreFetchObjects ( IZetboxContext ctx, IPersistenceObject>.Dictionary objects, Dictionary guids ) : void

Method Details

Deploy() public static method

public static Deploy ( IZetboxContext ctx ) : void
ctx IZetboxContext
return void

LoadFromXml() public static method

Loads a database from the specified filename into the specified context.
public static LoadFromXml ( IZetboxContext ctx ) : IEnumerable
ctx IZetboxContext
return IEnumerable

LoadFromXml() public static method

public static LoadFromXml ( IZetboxContext ctx, Stream stream, string streamDescription ) : IEnumerable
ctx IZetboxContext
stream Stream
streamDescription string
return IEnumerable