This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi there, I have a problem where when i modify any of the entities and run visual studio and make any changes via the site i get the following error:
|
|
|
This appears to occur if your model project references the WCF assemblies. In that case we assume you want to be able to use your entities in WCF interfaces, and the readonly qualifier is not compatible with that. Either remove the WCF references from the project containing the model, or move the model into a new project which does not include the WCF references. I will talk to our WCF chap and see whether we can improve this or failing that at least add a warning for this because it is certainly unexpected behaviour! |
|
|
Hi Ivan, thanks for the reply. Is there another solution rather than a workaround? we do use WCF references and moving the model out is unfeasible at present. Thanks |
|
|
It is possible to suppres WCF compatibility using a secret switch. This however will mean you cannot use the entities in WCF data contracts. If you don't need to use the entities in data contracts, you can suppress "WCF compatible mode" as follows: * Close your solution in Visual Studio. |
|
|
Brilliant thanks! |
|