This project is read-only.

Closed From EDMX and Complex Type


Hi Tony,

I've a problem with my model that contains complex types.
The generated code doesn't compile.
I noticed that NotifyPropertyChange() calls are generated but the class does not derive from ModelBase<T>.
What is the fix for that ?
Closed May 19, 2015 at 3:04 PM by tonysneed
Issues page as moved to GitHub.


tonysneed wrote Aug 8, 2014 at 4:56 AM

Good catch. I think that may be missing from the model-first T4 template. I'll have a look ...

rpinchbeck wrote Sep 17, 2014 at 2:48 AM

I fixed it by changing line 202 of the from ...

<#=Accessibility.ForType(complex)#> partial class <#=code.Escape(complex)#>>

... to ...

<#=Accessibility.ForType(complex)#> partial class <#=code.Escape(complex)#> : ModelBase<<#=code.Escape(complex)#>>


tonysneed wrote Sep 17, 2014 at 8:44 AM

Perfect! Would you like to clone the repo and create a pull request?