+1-888-365-2779
Try Now
More in this section

Forums / Sitefinity SDK / Example module without using OpenAccess ORM?

Example module without using OpenAccess ORM?

3 posts, 0 answered
  1. Eric
    Eric avatar
    18 posts
    Registered:
    22 Nov 2010
    02 Feb 2011
    Link to this post
    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?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    02 Feb 2011
    Link to this post
    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.
  3. Eric
    Eric avatar
    18 posts
    Registered:
    22 Nov 2010
    02 Feb 2011
    Link to this post
    Ah, that was the gotcha I was looking for. EF supports POCO and Linq, but not if Sitefinity assumes a disconnected context.
3 posts, 0 answered