[Development] Migration Class - Lock database - debug

Topics: General
May 17, 2013 at 8:04 AM
Hi,

I add this code to upprade my module the code below permetting to drop the table and to recreate this one.
I add a breakpoint on InitCreate(), try to refresh the database in ssms, I obtain in that case "Lock request time out period exceeded".
        public int UpdateFrom1()
        {
            SchemaBuilder.DropTable("PoiRecord");
            InitCreate();
            return 2;
        }
I need to wait the entire execution UpdateFrom1 to refresh the database.
I think there is a lock on the database, I am right?
Where can I see that? Is it related to nhybernate?

Best regards,
Alexandre