Example module without using OpenAccess ORM?

Posted by Community Admin on 05-Aug-2018 00:54

Example module without using OpenAccess ORM?

All Replies

Posted by Community Admin on 02-Feb-2011 00:00

I see that content must inherit from GenericContent.Model.Content or else implement a long list of interfaces? What if I wanted to use Entity Framework instead? is that practical? are there any examples?

Posted by Community Admin on 02-Feb-2011 00:00

Hi Eric,

If you want to use Content object with Entity Framework I would say that this is very hard implementation. It would take weeks to do this. Entity Framework does not support LINQ queries for Lstring, you have to override several providers. Sitefinity 4.0 is not tightly integrated with OpenAccess ORM. You can replace some of the built-in data classes with custom one( which is not a trivial task). It is better if you use another data layer supports POCO objects  - objects that are not tied to a specific context. It this case it is much easier.

Greetings,
Ivan Dimitrov
the Telerik team


Check out Telerik Trainer, the state of the art learning tool for Telerik products.

Posted by Community Admin on 02-Feb-2011 00:00

Ah, that was the gotcha I was looking for. EF supports POCO and Linq, but not if Sitefinity assumes a disconnected context.

This thread is closed