Miles Thornton
asked on
EF6.1.3 functionimport could not be found in the container
Using Entity Framework 6.1.3 (latest) my stored procedure (a function import) appears at design-time; disappears at runtime.
The function import appears to be present as Intellisense presents the function and its required parameters:
using (var context = new eCRMEntities())
{
result = int.Parse(context.usp_GetI sMortgageE DILoanOwne r(request. ID, request.LoanNumber.ToStrin g());
}
However, at runtime, this line throws: The FunctionImport 'usp_GetIsMortgageEDILoanO wner' could not be found in the container 'eCRMEntities' error.
I have removed and reinstalled EntityFramework from the solution - no change.
I have reviewed my connection string; the database connection is working.
I have other methods invoked on context tables (find() for example); they work just fine.
The function import appears to be present as Intellisense presents the function and its required parameters:
using (var context = new eCRMEntities())
{
result = int.Parse(context.usp_GetI
}
However, at runtime, this line throws: The FunctionImport 'usp_GetIsMortgageEDILoanO
I have removed and reinstalled EntityFramework from the solution - no change.
I have reviewed my connection string; the database connection is working.
I have other methods invoked on context tables (find() for example); they work just fine.
ASKER
DcpKing,
No, I'm not using anything like that; I'm using the context directly.
No, I'm not using anything like that; I'm using the context directly.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am closing this question as I have had to make a workaround and am under a time crunch to get this project done. DcpKing, thank you for your interest and your attempt to help - much appreciated.
ASKER
No one else was willing to touch the EF6 question - I'm disappointed by the lack of responses and interest. I've been a paying member of this website for years and usually; the response is much better.
DcpKing; Thank you; you rock.
DcpKing; Thank you; you rock.
Sorry I couldn't help more. Good luck!
Mike
Mike
Open in new window
try changing toOpen in new window
hth
Mike