Commit f30837b
visubesy
Use Type as PropertyPart CustomType instead of only name (#347)
* Don't use only name for PropertyPart.CustomType
- Use the constructor of TypeReference with Type argument instead of the
constructor with string argument in the overloads of CustomType in
PropertyPart where an explicit Type is passed.
- This fixes the problem that Fluent NHibernate may map a wrong type
for a property although an explicit type was passed to CustomType.
This problem can happen if there are two types with names which only
differ in upper / lower case. Such similar type names can e.g. be
caused by obfuscation tools.
* Adapt tests to new behaviour of PropertyPart
- The production code of the CustomType overloads of PropertyPart was
changed to use a different constructor of TypeReference when an
explicit Type was given. This caused two tests to fail although the
code still should work correctly.
- Change failing tests to expect the new behaviour.
+semver:fix1 parent bf7ead4 commit f30837b
File tree
3 files changed
+9
-12
lines changed- src
- FluentNHibernate.Testing
- ConventionsTests/OverridingFluentInterface
- DomainModel/Mapping
- FluentNHibernate/Mapping
3 files changed
+9
-12
lines changedsrc/FluentNHibernate.Testing/ConventionsTests/OverridingFluentInterface/PropertyConventionTests.cs
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| |||
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 198 | + | |
202 | 199 | | |
203 | 200 | | |
204 | 201 | | |
| |||
0 commit comments