File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed
src/NHibernate.Test/Async/NHSpecificTest/NH1845 Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change 8
8
//------------------------------------------------------------------------------
9
9
10
10
11
- using NHibernate . Cfg . MappingSchema ;
12
- using NHibernate . Mapping . ByCode ;
13
11
using NUnit . Framework ;
14
12
namespace NHibernate . Test . NHSpecificTest . NH1845
15
13
{
16
14
using System . Threading . Tasks ;
17
15
using System . Threading ;
18
16
[ TestFixture ]
19
- public class FixtureAsync : TestCaseMappingByCode
17
+ public class FixtureAsync : BugTestCase
20
18
{
21
- protected override HbmMapping GetMappings ( )
22
- {
23
- var mapper = new ModelMapper ( ) ;
24
- mapper . Class < Category > ( rc =>
25
- {
26
- rc . Id ( x => x . Id , map => map . Generator ( Generators . Native ) ) ;
27
- rc . Property ( x => x . Name ) ;
28
- rc . ManyToOne ( x => x . Parent , map => map . Column ( "ParentId" ) ) ;
29
- rc . Bag ( x => x . Subcategories , map =>
30
- {
31
- map . Access ( Accessor . NoSetter ) ;
32
- map . Key ( km => km . Column ( "ParentId" ) ) ;
33
- map . Cascade ( Mapping . ByCode . Cascade . All . Include ( Mapping . ByCode . Cascade . DeleteOrphans ) ) ;
34
- } , rel => rel . OneToMany ( ) ) ;
35
- } ) ;
36
- var mappings = mapper . CompileMappingForAllExplicitlyAddedEntities ( ) ;
37
- return mappings ;
38
- }
39
-
40
19
[ Test ]
41
20
public async Task LazyLoad_Initialize_AndEvictAsync ( )
42
21
{
You can’t perform that action at this time.
0 commit comments