I created an entity model for my DB classes, here is one of them:
[EdmEntityTypeAttribute(NamespaceName="SotiModel", Name="SKUPrice")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class SKUPrice : EntityObject { ... }
and created a partial class for one of them
public partial class SKUPrice { }
The problem here is that the "partial" world is written in a "light" color, and resharper suggests: "a partial class with one part . "
It seems that my "own" part of the partial class does not match the "main" part ...
Why? How to fix it?
Thank you so much!
PS I work in VS2010, under Windows7 (64 bit)
I donβt know what the problem really is, but for some reason, if I copy / paste the source code of a class from one file to another and after that rename the class name and the name of the metadata class name - this does not count as' Visual Studio as valid class.
If I delete a file with this "broken" class and TYPE EVERYTHING manually from scratch - the file is accepted by the studio ...
A strange and stupid thing ... but that ...
If you know why this is happening, let me know.
Thanks.
Budda
source share