Skip to content

Commit ebc81e5

Browse files
committed
Typo fixes.
1 parent 9713ae3 commit ebc81e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3319,8 +3319,8 @@ SELECT SERVERPROPERTY('Edition') AS Edition,
33193319
manyToManyMapping = string.Format("c => new {{ {0} }}", string.Join(", ", fkCols.Select(x => "c." + x.col.NameHumanCase).Distinct().ToArray()));
33203320
mapKey = string.Format("{0}", string.Join(",", fkCols.Select(x => "\"" + x.col.Name + "\"").Distinct().ToArray()));
33213321
} else {
3322-
manyToManyMapping = string.Format("c => c.{0}", fkCol.col.NameHumanCase);
3323-
mapKey = string.Format("\"{0}\"", fkCol.col.Name);
3322+
manyToManyMapping = string.Format("c => c.{0}", firstFKCol.col.NameHumanCase);
3323+
mapKey = string.Format("\"{0}\"", firstFKCol.col.Name);
33243324
}
33253325

33263326
if (!Settings.UseDataAnnotations)
@@ -3365,7 +3365,7 @@ SELECT SERVERPROPERTY('Edition') AS Edition,
33653365

33663366
private static string GetRelationship(Relationship relationship, IList<Column> fkCols, IList<Column> pkCols, string pkPropName, string fkPropName, string manyToManyMapping, string mapKey, bool cascadeOnDelete, bool includeReverseNavigation, bool isNotEnforced)
33673367
{
3368-
string hasMethod = GetHasMethod(relationship, fkCosl, pkCols, isNotEnforced);
3368+
string hasMethod = GetHasMethod(relationship, fkCols, pkCols, isNotEnforced);
33693369
string withMethod = GetWithMethod(relationship, fkCols, fkPropName, manyToManyMapping, mapKey, includeReverseNavigation);
33703370

33713371
return string.Format("{0}(a => a.{1}){2}{3}",

0 commit comments

Comments
 (0)