コード例 #1
0
        private static PostgreSqlConnectionProvider ConnectionProviderFromString(string connectionString)
        {
            var provider = new PostgreSqlConnectionProvider();
            var conn     = new NpgsqlConnection(connectionString);

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

            return(provider);
        }
コード例 #2
0
 public PostgreSqlMigrationContextFactory(PostgreSqlConnectionProvider connectionProvider)
 {
     this.connectionProvider = connectionProvider;
 }