So, I have a Spr_EventLogCreate stored procedure defined in my database. I created a function import in my data model called LogEvent with no return type, and I see this function in the model browser tree in
MyModel.edmx> MyModel> EntityContainer> Import Functions> LogEvent.
I thought that then I would need to call a function in my code as follows:
var context = new MyModelEntities();
context.LogEvent(...);
But there is no LogEvent () method.
I should be really stupid here, but how can I name my imported function?
Using VS 2008 and EF 3.5.
source
share