LINQ to SQL delete property
I have a .dbml designer view, i have 开发者_C百科classes with properties, when i want to delete a property from a class, it deletes it from the view, but it is still possible to access that property from my code.
So my question is: How can i delete class property, that it wouldn't be accessable?
EDIT:
View is something like that, and when i delete any property. It still is possible to access that property in my code. How can i delete that property permanently?
The DBML is the input for a code generator. If the property doesn't exist in the input, it shouldn't exist in the generated output. I suspect you simply need to hit "save" on the DBML - or failing that, right click the DBML and hit "run custom tool".
If it still exists after that, press F12 to see where it is being defined.
精彩评论