Skip to content

Commit 53a180e

Browse files
committed
#491 Always include reverse navigation.
1 parent 9d7bd56 commit 53a180e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EntityFramework.Reverse.POCO.Generator/EF.Reverse.POCO.Core.ttinclude

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@
780780
AddRelationship( fkList, tablesAndViews, name, pkSchema, pkTable, new String[] { pkColumn }, fkSchema, fkTable, new String[] { fkColumn } );
781781
}
782782

783-
public static void AddRelationship(List<ForeignKey> fkList, Tables tablesAndViews, String relationshipName, String pkSchema, String pkTableName, String[] pkColumns, String fkSchema, String fkTableName, String[] fkColumns, Boolean includeReverseNavigation = true)
783+
public static void AddRelationship(List<ForeignKey> fkList, Tables tablesAndViews, String relationshipName, String pkSchema, String pkTableName, String[] pkColumns, String fkSchema, String fkTableName, String[] fkColumns)
784784
{
785785
// Argument validation:
786786
if( fkList == null ) throw new ArgumentNullException("fkList");
@@ -833,7 +833,7 @@
833833
cascadeOnDelete : false,
834834
isNotEnforced : false
835835
);
836-
fk.IncludeReverseNavigation = includeReverseNavigation;
836+
fk.IncludeReverseNavigation = true;
837837

838838
fkList.Add( fk );
839839
fkTable.HasForeignKey = true;

0 commit comments

Comments
 (0)