@@ -12,7 +12,6 @@ public class OneToManyPart<TChild> : ToManyBase<OneToManyPart<TChild>, TChild>
12
12
{
13
13
private readonly Type entity ;
14
14
private readonly ColumnMappingCollection < OneToManyPart < TChild > > keyColumns ;
15
- private readonly CollectionCascadeExpression < OneToManyPart < TChild > > cascade ;
16
15
private readonly NotFoundExpression < OneToManyPart < TChild > > notFound ;
17
16
private IndexManyToManyPart manyToManyIndex ;
18
17
private readonly Type childType ;
@@ -31,11 +30,6 @@ protected OneToManyPart(Type entity, Member member, Type collectionType)
31
30
childType = collectionType ;
32
31
33
32
keyColumns = new ColumnMappingCollection < OneToManyPart < TChild > > ( this ) ;
34
- cascade = new CollectionCascadeExpression < OneToManyPart < TChild > > ( this , value =>
35
- {
36
- var current = collectionAttributes . Get ( "Cascade" ) as string ;
37
- collectionAttributes . Set ( "Cascade" , Layer . UserSupplied , current == null ? value : string . Format ( "{0},{1}" , current , value ) ) ;
38
- } ) ;
39
33
notFound = new NotFoundExpression < OneToManyPart < TChild > > ( this , value => relationshipAttributes . Set ( "NotFound" , Layer . UserSupplied , value ) ) ;
40
34
41
35
collectionAttributes . Set ( "Name" , Layer . Defaults , member . Name ) ;
@@ -54,7 +48,7 @@ public NotFoundExpression<OneToManyPart<TChild>> NotFound
54
48
/// </summary>
55
49
public new CollectionCascadeExpression < OneToManyPart < TChild > > Cascade
56
50
{
57
- get { return cascade ; }
51
+ get { return base . Cascade ; }
58
52
}
59
53
60
54
/// <summary>
0 commit comments