fluent-nhibernate icon indicating copy to clipboard operation
fluent-nhibernate copied to clipboard

Reintroduce virtual protected methods

Open be-philippe opened this issue 12 years ago • 0 comments

In version 1.1, I designed classes deriving from MapClass and SubmapClass to handle default behaviours in my class library. Among other things, this implied to override protected methods such as

    protected override OneToManyPart<TChild> HasMany<TChild>(Member member)
    {
        return MapHelper.HasMany<TChild>(member, base.HasMany<TChild>(member));
    }

    protected override PropertyPart Map(Member property, string columnName)
    {
        return MapHelper.Map(property, base.Map(property, columnName));
    }

MapHelper then adds what is needed to the xxxPart.

In version 1.3, these are now private. Is is possible to modify these back to virtual protected ? Is there now another way to handle these situations ?

be-philippe avatar Jan 11 '13 15:01 be-philippe