You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/FluentNHibernate.Specs/PersistenceModel/PersistenceModelSpecs.Validation.cs
+50Lines changed: 50 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
usingSystem;
2
+
usingSystem.Collections.Generic;
2
3
usingFluentNHibernate.Mapping;
3
4
usingFluentNHibernate.Visitors;
4
5
usingMachine.Specifications;
@@ -51,6 +52,43 @@ public class when_the_persistence_model_is_told_to_build_the_mappings_with_a_cla
51
52
exception.Message.ShouldEqual("The entity 'Target' doesn't have an Id mapped. Use the Id method to map your identity property. For example: Id(x => x.Id).");
exception.Message.ShouldEqual("The relationship Left.Rights to Right.Lefts has Inverse specified on both sides. Remove Inverse from one side of the relationship.");
string.Format("The relationship {0}.{1} to {2}.{3} has Inverse specified on both sides.",mapping.ContainingEntityType.Name,mapping.Name,otherSide.ContainingEntityType.Name,otherSide.Name),
38
+
"Remove Inverse from one side of the relationship",
0 commit comments