Пример #1
0
        private static PostgreSqlConnectionProvider ConnectionProviderFromString(string connectionString)
        {
            var provider = new PostgreSqlConnectionProvider();
            var conn     = new NpgsqlConnection(connectionString);

            provider.Add("yolo", conn, true);

            return(provider);
        }
 public PostgreSqlMigrationContextFactory(PostgreSqlConnectionProvider connectionProvider)
 {
     this.connectionProvider = connectionProvider;
 }