We have created some user controls which interact with the database using the entity framework. My question is how to use these controls in SharePoint. Do we have to copy the .edmx file to the /virtualdirectories/site folder?
Any ideas?
Thanks
|
We have created some user controls which interact with the database using the entity framework. My question is how to use these controls in SharePoint. Do we have to copy the .edmx file to the /virtualdirectories/site folder? Any ideas? Thanks |
||||
|
|
|
The .edmx file is only used within the source. It's compiled with the Entity Model Code Generator Tool which creates the necessary classes. If you build a class library using the Entity Framework all you need to do is reference the output assembly in your SharePoint project. Or you can add an entity data model to your SharePoint project and use it as normal. |
|||||||||||
|