Code: Select all
var conn = new PgSqlConnection ("Server = ***; Port = 5433; User Id = ***; password = ***; Schema = mySchema1, mySchema2; Database = ***; Unicode = true;");
Try to load settings.
conn.Open ();
var cmd = new PgSqlCommand ("StoreProcInSchema2", conn);
cmd.CommandType = CommandType.StoredProcedure;
PgSqlCommandBuilder.DeriveParameters (cmd);
An unhandled exception of type 'System.InvalidOperationException' occurred in Devart.Data.PostgreSql.dll
Additional information: Function StoreProcInSchema2 not found.
If you change the connection string and put mySchema2 in the first place, then everything is OK!
Code: Select all
var conn = new PgSqlConnection ("Server = ***; Port = 5433; User Id = ***; password = ***; Schema = mySchema2, mySchema1; Database = ***; Unicode = true;");
Try to load settings.
conn.Open ();
var cmd = new PgSqlCommand ("StoreProcInSchema2", conn);
cmd.CommandType = CommandType.StoredProcedure;
PgSqlCommandBuilder.DeriveParameters (cmd); - OK!