ServiceStack/ServiceStack.OrmLite — pull request #2 by danbarua (2011-11-18 16:01:37+00:00)
Title: Fixed OrmLite to work with Schemas

Hi Demis,

I hope I'm doing this right - this is my first ever pull request.

Some people may need to use OrmLite with databases where the tables have been separated into schemas.
I've modified all the Sql statement generation to get the table name from the DialectProvider method GetTableNameDelimited(ModelDef)

If using Sqlite, the table name becomes "schema_table", if using Sql server, it becomes "schema"."table".
I've decided that making OrmLite responsible for creating schemas would bloat and complexity,so I left it out.

Unit tests are in the SchemaUseCase.

Regards,

Dan Barua