I am using the provided EF5.0 EntityGenerator T4 template. I am trying to figure out how to obtain the schema and table of each entity as the generator creates each class. My intention is to add two const properties to each class like so:
public class MyEntity {
public const string TABLE = "MyEntityTable";
public const string SCHEMA = "MyEntitySchema";
}
I can't figure out how to utilize what is in the T4 Template to modify to do this. Here is what I have so far (first line is already in the T4 Template):
<#=codeStringGenerator.EntityClassOpening(entity)#>
{
public const string TABLE = "testTable";
public const string SCHEMA = "testSchema";
<#
...and the T4 template continues. I want to replace "testTable" and "testSchema" with the appropriate information. Any help would be very much appreciated as T4 templates are not my forte.