@@ -30,8 +30,8 @@ public void ShouldHaveSameTableNameForBothSidesOfMapping()
30
30
31
31
var mappings = model . BuildMappings ( ) ;
32
32
33
- var leftMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Left ) ) . First ( ) ;
34
- var rightMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Right ) ) . First ( ) ;
33
+ var leftMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Left ) ) ;
34
+ var rightMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Right ) ) ;
35
35
36
36
leftMapping . Collections . First ( ) . TableName . ShouldEqual ( "LeftsToRights" ) ;
37
37
rightMapping . Collections . First ( ) . TableName . ShouldEqual ( "LeftsToRights" ) ;
@@ -57,8 +57,8 @@ public void ShouldHaveSameTableNameForBothSidesOfMappingWhenLeftSpecified()
57
57
58
58
var mappings = model . BuildMappings ( ) ;
59
59
60
- var leftMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Left ) ) . First ( ) ;
61
- var rightMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Right ) ) . First ( ) ;
60
+ var leftMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Left ) ) ;
61
+ var rightMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Right ) ) ;
62
62
63
63
leftMapping . Collections . First ( ) . TableName . ShouldEqual ( "MyJoinTable" ) ;
64
64
rightMapping . Collections . First ( ) . TableName . ShouldEqual ( "MyJoinTable" ) ;
@@ -84,8 +84,8 @@ public void ShouldHaveSameTableNameForBothSidesOfMappingWhenRightSpecified()
84
84
85
85
var mappings = model . BuildMappings ( ) ;
86
86
87
- var leftMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Left ) ) . First ( ) ;
88
- var rightMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Right ) ) . First ( ) ;
87
+ var leftMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Left ) ) ;
88
+ var rightMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Right ) ) ;
89
89
90
90
leftMapping . Collections . First ( ) . TableName . ShouldEqual ( "MyJoinTable" ) ;
91
91
rightMapping . Collections . First ( ) . TableName . ShouldEqual ( "MyJoinTable" ) ;
@@ -109,7 +109,7 @@ public void ShouldHaveSameTableNameForUniDirectionalMapping()
109
109
110
110
var mappings = model . BuildMappings ( ) ;
111
111
112
- var leftMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Left ) ) . First ( ) ;
112
+ var leftMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Left ) ) ;
113
113
114
114
leftMapping . Collections . First ( ) . TableName . ShouldEqual ( "RightToLeft" ) ;
115
115
}
@@ -135,8 +135,8 @@ public void ShouldHaveSameTableNameForBothSidesOfMappingWhenHasMultipleBiDirecti
135
135
136
136
var mappings = model . BuildMappings ( ) ;
137
137
138
- var leftMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Left ) ) . First ( ) ;
139
- var rightMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Right ) ) . First ( ) ;
138
+ var leftMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Left ) ) ;
139
+ var rightMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Right ) ) ;
140
140
141
141
leftMapping . Collections . First ( ) . TableName . ShouldEqual ( "LeftsToRights" ) ;
142
142
rightMapping . Collections . First ( ) . TableName . ShouldEqual ( "LeftsToRights" ) ;
@@ -165,8 +165,8 @@ public void ShouldAllowConventionsToAlterBiDirectionalTableNames()
165
165
166
166
var mappings = model . BuildMappings ( ) ;
167
167
168
- var leftMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Left ) ) . First ( ) ;
169
- var rightMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Right ) ) . First ( ) ;
168
+ var leftMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Left ) ) ;
169
+ var rightMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Right ) ) ;
170
170
171
171
leftMapping . Collections . First ( ) . TableName . ShouldEqual ( "Lefts_Rights" ) ;
172
172
rightMapping . Collections . First ( ) . TableName . ShouldEqual ( "Lefts_Rights" ) ;
@@ -191,7 +191,7 @@ public void ShouldAllowConventionsToAlterUniDirectionalTableNames()
191
191
192
192
var mappings = model . BuildMappings ( ) ;
193
193
194
- var leftMapping = mappings . SelectMany ( x => x . Classes ) . Where ( x => x . Type == typeof ( Left ) ) . First ( ) ;
194
+ var leftMapping = mappings . SelectMany ( x => x . Classes ) . First ( x => x . Type == typeof ( Left ) ) ;
195
195
196
196
leftMapping . Collections . First ( ) . TableName . ShouldEqual ( "RightUni" ) ;
197
197
}
0 commit comments