Class DatabaseUpgrader
Inheritance
DatabaseUpgrader
Assembly: LemonEdge.Database.Connector.dll
Syntax
public class DatabaseUpgrader
Constructors
DatabaseUpgrader(IDataAccessor, IEntityContextFactory, IEntityDescriptorFactory, IFactoryInjector, IReflectionHelper, IAddInLoaderHelper, IAssemblyManager, IProcessMonitorFactory, IDatabaseCacheFactory, IOptions<DatabaseUpgradeSettings>, ILogger<DatabaseUpgrader>)
Creates a new DatabaseUpgrader, but using the provided
IDataAccessor.
Declaration
public DatabaseUpgrader(IDataAccessor accessor, IEntityContextFactory entityContextFactory, IEntityDescriptorFactory entityDescriptorFactory, IFactoryInjector factoryInjector, IReflectionHelper reflectionHelper, IAddInLoaderHelper addInLoaderHelper, IAssemblyManager assemblyManager, IProcessMonitorFactory processMonitorFactory, IDatabaseCacheFactory cacheFactory, IOptions<DatabaseUpgradeSettings> settings, ILogger<DatabaseUpgrader> logger)
Parameters
Methods
LoadAddIns()
Declaration
public Task<IEnumerable<CustomAddIn>> LoadAddIns()
Returns
LoadCustomObjects(IDbConnection, bool)
Declaration
public Task<CustomAssembly> LoadCustomObjects(IDbConnection cn, bool throwErrors)
Parameters
Returns
RecreateAllCustomFunctions(UserInfo, IDbConnection)
Declaration
public Task RecreateAllCustomFunctions(UserInfo user, IDbConnection cn)
Parameters
Returns
RecreateAllWrappers(DataUpdater, DatabaseCache, UserInfo)
Declaration
public Task RecreateAllWrappers(DataUpdater updater, DatabaseCache cache, UserInfo adminUser)
Parameters
Returns
UpgradeDatabase(UpgradeGate, List<Guid>, bool, string)
Declaration
public Task<bool> UpgradeDatabase(UpgradeGate gate, List<Guid> forceRefresh = null, bool throwOnError = false, string source = "")
Parameters
Returns
Extension Methods