Example module without using OpenAccess ORM? - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Example module without using OpenAccess ORM?

  • Example module without using OpenAccess ORM?
  • 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?
  • 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.
  • Ah, that was the gotcha I was looking for. EF supports POCO and Linq, but not if Sitefinity assumes a disconnected context.