Skip to content

Commit 3f263a2

Browse files
committed
#23 Added comment to warn devs to use a different db context name to tt file. Thanks to Andygjp.
1 parent c1cc2c5 commit 3f263a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

EntityFramework.Reverse.POCO.Generator/Database NorthwindSqlCe40.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//ProviderName = "System.Data.SqlServerCe.4.0";
1414

1515
Namespace = "EntityFramework_Reverse_POCO_Generator.SqlCe4"; // Override the default namespace here
16-
DbContextName = "MyDbContextSqlCE4";
16+
DbContextName = "MyDbContextSqlCE4"; // Note: If generating separate files, please give the db context a different name from this tt filename.
1717
//DbContextInterfaceName = "IMyDbContextSqlCE4"; // Defaults to "I" + DbContextName or set string empty to not implement any interface.
1818
DbContextInterfaceBaseClasses = "System.IDisposable"; // Specify what the base classes are for your database context interface
1919
DbContextBaseClass = "System.Data.Entity.DbContext"; // Specify what the base class is for your DbContext. For ASP.NET Identity use "IdentityDbContext<ApplicationUser>"

EntityFramework.Reverse.POCO.Generator/Database.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//ProviderName = "System.Data.SqlClient";
1414

1515
// Namespace = ""; // Override the default namespace here
16-
DbContextName = "MyDbContext";
16+
DbContextName = "MyDbContext"; // Note: If generating separate files, please give the db context a different name from this tt filename.
1717
//DbContextInterfaceName = "IMyDbContext"; // Defaults to "I" + DbContextName or set string empty to not implement any interface.
1818
DbContextInterfaceBaseClasses = "System.IDisposable"; // Specify what the base classes are for your database context interface
1919
DbContextBaseClass = "System.Data.Entity.DbContext"; // Specify what the base class is for your DbContext. For ASP.NET Identity use "IdentityDbContext<ApplicationUser>"

0 commit comments

Comments
 (0)