views:

55

answers:

1

I got the error

Cannot find the InsertFunctionMapping for EntityType 'xxx' in the mapping file.

Which is fair enough because it is true. But that is because I am happy with EF doing inserts for me. I simply want to override the delete function.

I thought that was one of the improvements with EF4? Or is it just that it will build fine but still cry when you use the unmapped functions? Or is it possible but I am just missing something?

A: 

AFAIK. It's all or nothing.

If you do not map all three of the insert, update, or delete operations of a entity type to stored procedures, the unmapped operations will fail if executed at runtime and an UpdateException is thrown.

MSDN

Yury Tarabanko