How to add a FunctionImportMapping programmatically using classes from the System.Data.Entity.Design namespace?
This blog post discusses the modifications that need to be made to the EDMX:
I want to be able to do this programmatically.
How to add a FunctionImportMapping programmatically using classes from the System.Data.Entity.Design namespace?
This blog post discusses the modifications that need to be made to the EDMX:
I want to be able to do this programmatically.
Unfortunately the metadata APIs (i.e. the ones that reason about the CSDL/MSL/SSDL) are read-only. So unless you write your own API to help you create appropriate XML, you are out of luck.
Hope this helps
Alex