Can I use Entity Framework for this?

I am working on an application that I want to open to the outside world using ODATA. Let me first give you an idea of ​​this app.

In this application, I need to create a library that will allow users to perform CRUD operations in the database. To do this, the client provided an XSD from which we need to generate classes. Using these classes and the data service provider provided by the client, the user can perform CRUD operations.

This application is ready, and now I want to open it using ODATA. Here are my wrt conclusions exposing this library as ODATA

  • I need to either use the Custom / Reflection provider, since I cannot use the Entity Framework because I do not have access to the data.

But in the future, XSD will change. Therefore, I need to change metadata whenever this happens. Can I handle it so that the latest metadata is always displayed without changing the code?

Should I go with reflection / user provider?

Thank,

Frame

+3
source share
1 answer

You can definitely change the OData form that is returned when the XSD changes. However, there is a serious problem. Most clients will generate client classes based on the SSDL that was present when the service link was added. As a result, clients will fail because the object model will not conform to the new data form.

. , ( ).

WCF. , WCF.

0

Source: https://habr.com/ru/post/1770068/


All Articles