2

Imported a stored procedure into my model following the the instructions here. The stored procedure and the results class show up in the model browser as well as in the Designer.cs code:

Shown: model browser, and code from the designer.cs class]![enter image description hereProject compiles, but I cannot reference the GetCurrentConfigurationSettings method that was created:

VS does not recognize the new method

Tried deleting and recreating the function import. Added/removed using statements. I've tried various object/method call permutations, but nothing works. At wit's end. What else could I be missing?

1
  • Could you please just copy/paste the code? And what exactly do you mean by "cannot reference"? If you've got any error messages, please post them. Commented Dec 15, 2014 at 21:30

1 Answer 1

0

In the end, the resolution to this issue was to delete all the EF related files and start fresh. The only thing I can think of which might have caused this is that I changed the name of the project that the EF files lived in many times. I assume this caused some sort of function and/or namespace confusion on EF's (or my own) part. Since recreating the model, I've imported 2 or 3 functions without issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.