Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit a71d9d5

Browse files
committed
Added use of [Schema] into T4 templates so that tables on other schemas could be used if
the user has the required db permissions.
1 parent ea1b1e4 commit a71d9d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/T4/OrmLite.Poco.tt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ manager.StartNewFile(tbl.Name + ".cs");
5858
#>
5959
<# if (MakeSingular) {#>
6060
[Alias("<#=tbl.Name#>")]
61+
[Schema("<#=tbl.Schema#>")]
6162
<#}#>
6263
public partial class <#=tbl.ClassName#><#if (tbl.HasPK() && UseIdAsPK) { #> : IHasId<<#=tbl.PK.PropertyType#>><#}#>
6364
{

0 commit comments

Comments
 (0)