Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Patrick Scott 70 posts 110 karma points c-trib
    Jul 13, 2016 @ 19:34
    Patrick Scott
    1

    Models Builder - extending an interface (composition)

    I am just getting to grips with the models builder in 7.4 and am not sure how I should be doing this.

    If I have a property on a doc type I want to implement myself, I can create that in a partial class and the models builder won't create that property when the code is being generated. That's great and makes sense.

    Now I come to a property that is in a composition. Models builder creates these as interfaces, so if I do the same thing, then Models builder does not add this to the interface and so all the derived doc type classes don't have this property generated.

    If I then extend the interface class to include this property then models builder still does not implement this property in the derived doc type classes and so there is a compilation error.

    So how should I go about changing a property on a composition so it is still usable in all the classes that implement that interface?

    I hope that all makes sense.

Please Sign in or register to post replies

Write your reply to:

Draft