oData como fuente de datos para Entity Framework

Is it possible to use oData as a datasource for entity framework? We are looking at the possibility of our web app calling a wcf method that would return oData for our entites generated by entity framework 4.2. I'm wondering if this was possible and if so how I would go about doing it.

¡Cualquier consejo sería muy apreciado!

preguntado el 01 de febrero de 12 a las 14:02

1 Respuestas

If you consume OData (with WCF Data Services) you will already get context and generated entities. Just add service reference to OData service and it should generate all entities and client for you.

OData is not valid data source for EF. EF is ORM for communication with database provider. You are looking for provider transforming .NET calls (and LINQ queries) into OData protocols - that is what WCF Data Services are supposed to do.

Respondido 01 Feb 12, 18:02

Ok great! I will look into that. Thank you! - Hidan

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.