Beispiel #1
0
        private void RunOnServer(Database database)
        {
            var databaseService = DatabaseServiceFactory.CreateDatabaseService();

            databaseService.DatabaseInformation = database;
            databaseService.Connect();

            databaseService.Disconnect();
        }
        public static void ConfigureEFDatabase <T>(
            IServiceCollection services,
            string engine,
            string connectionString
            )
            where T : DbContext
        {
            var databaseServices = DatabaseServiceFactory.Create <T>(services, engine, connectionString);

            databaseServices.Configure();
        }