@@ -12,7 +12,6 @@ public class OneToManyPart<TChild> : ToManyBase<OneToManyPart<TChild>, TChild>
1212 {
1313 private readonly Type entity ;
1414 private readonly ColumnMappingCollection < OneToManyPart < TChild > > keyColumns ;
15- private readonly CollectionCascadeExpression < OneToManyPart < TChild > > cascade ;
1615 private readonly NotFoundExpression < OneToManyPart < TChild > > notFound ;
1716 private IndexManyToManyPart manyToManyIndex ;
1817 private readonly Type childType ;
@@ -31,11 +30,6 @@ protected OneToManyPart(Type entity, Member member, Type collectionType)
3130 childType = collectionType ;
3231
3332 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- } ) ;
3933 notFound = new NotFoundExpression < OneToManyPart < TChild > > ( this , value => relationshipAttributes . Set ( "NotFound" , Layer . UserSupplied , value ) ) ;
4034
4135 collectionAttributes . Set ( "Name" , Layer . Defaults , member . Name ) ;
@@ -54,7 +48,7 @@ public NotFoundExpression<OneToManyPart<TChild>> NotFound
5448 /// </summary>
5549 public new CollectionCascadeExpression < OneToManyPart < TChild > > Cascade
5650 {
57- get { return cascade ; }
51+ get { return base . Cascade ; }
5852 }
5953
6054 /// <summary>
0 commit comments