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?
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.
is working on a reply...