I'm using entity framework 4.0 (POCO) and razor engine together, when I write the razor template content as like <a href="@Model.Url
" />, this template parses and run correctly when the Model
is a common class object, but throws an error while the Model was auto-generated by entityframework. The exception details is:
The type or namespace name 'DynamicProxies' does not exist in the namespace 'System.Data.Entity' (are you missing an assembly reference?)
I'm not sure if this is a bug or not, otherwise what should I do with this case?
Thanks a lot!