How in EF4 can I make an imported function return a complex type, which is not generated by the designer?
So I have a custom class somewhere in my project and I want the stored proc result to be return as this class.
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.
Each class returned from EF must be “part” of designer and underlaying mapping. If you define class somewhere in your project without modeling in EDMX, EF will not know how to materialize object when function is executed.