ServiceStack/ServiceStack.OrmLite — pull request #232 by chrismcv (2013-05-10 12:48:58+00:00)
Title: Support for SearchPath in ConnectionString when creating table

Hi,
I'm currently building a mutli-tenanted service using Postgres and ORMLite, and using CreateTable<> to build the schema when a tenant is created. I'm using SearchPath in the connection string to identify the tenantID, which then maps to the tenant schema.

I found that the "table exists" lookup finds a table if they are in any schema in the db, which meant the tables weren't being created. The fix will only apply when the SearchPath in the connection string has a single schema in it.

Cheers,
Chris