ServiceStack/ServiceStack.OrmLite — pull request #296 by Lee337 (2013-08-01 22:39:01+00:00)
Title: added schema prefix to JoinSqlBuilder for building queries

Added ability to prefix tables that have the SchemaAttribute applied.

Previously, the sql created was this:
```SQL
SELECT "transaction"."id" AS "id","transaction"."bank_detail_id" AS "bank_detail_id","transaction"."client_id" AS "client_id","transaction"."create_date" AS "create_date","transaction"."enabled" AS "enabled","transaction"."instruction_batch_id" AS "instruction_batch_id","transaction"."response_id" AS "response_id","transaction"."service_id" AS "service_id","transaction"."transaction_status_id" AS "transaction_status_id"
FROM "transaction"
LEFT OUTER JOIN "bank_detail" ON "transaction"."bank_detail_id" = "bank_detail"."id"
WHERE "bank_detail"."bank_id" In (1,2,3,4,5)
```

Now it is this, if a class has the SchemaAttribute.
In the below case I have "avs" as the schema name:
```SQL
SELECT "transaction"."id" AS "id","transaction"."bank_detail_id" AS "bank_detail_id","transaction"."client_id" AS "client_id","transaction"."create_date" AS "create_date","transaction"."enabled" AS "enabled","transaction"."instruction_batch_id" AS "instruction_batch_id","transaction"."response_id" AS "response_id","transaction"."service_id" AS "service_id","transaction"."transaction_status_id" AS "transaction_status_id"
FROM avs."transaction"
LEFT OUTER JOIN "bank_detail" ON "transaction"."bank_detail_id" = "bank_detail"."id"
WHERE "bank_detail"."bank_id" In (1,2,3,4,5)
```