File tree Expand file tree Collapse file tree 4 files changed +8
-36
lines changed
FluentNHibernate/Automapping Expand file tree Collapse file tree 4 files changed +8
-36
lines changed Original file line number Diff line number Diff line change 24
24
25
25
* .swp
26
26
TestResult.xml
27
+ * .ncrunchsolution
28
+ packages /
Original file line number Diff line number Diff line change 2
2
using System . Collections . Generic ;
3
3
using System . Linq ;
4
4
using System . Text ;
5
+ using FluentNHibernate . Automapping . TestFixtures . SuperTypes ;
5
6
using FluentNHibernate . Testing . Automapping ;
6
7
using NUnit . Framework ;
7
8
@@ -23,33 +24,4 @@ public void AutoMapSimpleProperties()
23
24
} ) ;
24
25
}
25
26
}
26
-
27
- public abstract class Base1
28
- {
29
- public virtual int Id { get ; protected set ; }
30
- public abstract void Foo ( int x ) ;
31
- }
32
-
33
- public class Derived1 : Base1
34
- {
35
- public virtual Decimal Rate { get ; set ; }
36
- public override void Foo ( int x )
37
- {
38
- }
39
-
40
- public string GetSomething ( )
41
- {
42
- return Environment . NewLine ;
43
- }
44
- }
45
-
46
- public class SecondLevel : Derived1
47
- {
48
- public virtual Double SecondRate { get ; set ; }
49
- }
50
-
51
- public class ThirdLevel : SecondLevel
52
- {
53
- public virtual Boolean Flag { get ; set ; }
54
- }
55
27
}
Original file line number Diff line number Diff line change 101
101
<Compile Include =" AutoMapping\Apm\AlterationCollectionTests.cs" />
102
102
<Compile Include =" AutoMapping\Apm\AlterationTests.cs" />
103
103
<Compile Include =" AutoMapping\Apm\ConcreteBaseClassTests.cs" />
104
- <Compile Include =" AutoMapping\Apm\Conventions\VersionConventionTests.cs" />
105
- <Compile Include =" AutoMapping\DefaultAutoMappingConfigurationTests.cs" />
106
- <Compile Include =" AutoMapping\Apm\IdentityTests.cs" />
104
+ <Compile Include =" AutoMapping\Apm\Conventions\VersionConventionTests.cs" />
105
+ <Compile Include =" AutoMapping\DefaultAutoMappingConfigurationTests.cs" />
106
+ <Compile Include =" AutoMapping\Apm\IdentityTests.cs" />
107
+ <Compile Include =" AutoMapping\InheritanceTests.cs" />
107
108
<Compile Include =" AutoMapping\Overrides\ReferenceComponentOverrides.cs" />
108
109
<Compile Include =" AutoMapping\Overrides\AutoMappingOverrideAlterationTests.cs" />
109
110
<Compile Include =" AutoMapping\Apm\CacheOverrideTests.cs" />
Original file line number Diff line number Diff line change @@ -207,9 +207,6 @@ private void AddMapping(Type type)
207
207
{
208
208
Type typeToMap = GetTypeToMap ( type ) ;
209
209
210
- // Fixes https://github.com/jagregory/fluent-nhibernate/issues/113,
211
- // where 'type' would not be mapped if 'GetTypeToMap' returned the
212
- // base type
213
210
if ( typeToMap != type )
214
211
{
215
212
log . BeginAutomappingType ( type ) ;
@@ -264,7 +261,7 @@ private bool ShouldMap(Type type)
264
261
return false ; // skipped because we don't want to map components as entities
265
262
}
266
263
if ( type == typeof ( object ) )
267
- return false ; // object!
264
+ return false ;
268
265
269
266
return true ;
270
267
}
You can’t perform that action at this time.
0 commit comments