Skip to content

Commit 4e3ff9c

Browse files
committed
Shown sample usage
1 parent c4f7f0e commit 4e3ff9c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

EntityFramework.Reverse.POCO.Generator/Database.tt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,21 @@
458458
return fkName;
459459
};
460460

461+
/*
462+
ForeignKeyAnnotationsProcessing = (Table fkTable, Table pkTable, string propName) =>
463+
{
464+
// each navigation property that is a reference to User are left intact
465+
if (pkTable.NameHumanCase.Equals("User"))
466+
{
467+
if (propName.Equals("User"))
468+
return null;
469+
}
470+
471+
// all the others are marked with this attribute
472+
return new[] { "System.Runtime.Serialization.IgnoreDataMember" };
473+
};
474+
*/
475+
461476
// Return true to include this table in the db context
462477
ConfigurationFilter = (Table t) =>
463478
{

0 commit comments

Comments
 (0)