dresel wrote:I verified (via dbMonitor) that this statement (CREATE SCHEMA "Current SCHEMA {C353AD3D-7207-416E-A4C4-7FE3BEE0E887}") is executed by dotConnect.
The bug with creating extra schema in the database when config.DatabaseScript.Schema.DeleteDatabaseBehaviour = DeleteDatabaseBehaviour.Database is fixed. We will notify you when the corresponding build of dotConnect for PostgreSQL is available for download.
dresel wrote:I also found out, that Migrations are not executed when using
context.Database.Create, but when you do something like
which triggers a database creation then Migrations are executed.
The test project you have sent us includes the code:
Code: Select all
private static void Main(string[] args)
{
PgSqlMonitor monitor = new PgSqlMonitor() { IsActive = true };
TestContext context = new TestContext();
if (context.Database.Exists())
{
context.Database.Delete();
}
context.Database.Create();
And this code does (re)create a database with the "TestEntity" table. How should we modify your test project to reproduce the issue?