Does anyone know if there is a way to add a property to a my partial class that will show in the Entity Framework designer so I can use it in my mapping to a stored procedure? I can modify the edmx, but would prefer to avoid it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately the Entity Framework (and the Designer) are completely unaware of your partial class properties. If you intend to use a property in a Stored Procedure mapping etc, you will need to add the property into the model.
So yes you will have to modify the EDMX.
Alex James
(Program Manager Entity Framework Team)