Is POCO not suppored?

Thread is closed for posting
6 posts, 0 answers
  1. abdu bukres
    abdu bukres avatar
    80 posts
    Member since:
    Mar 2004

    Posted 01 Aug 2010 Link to this post

    The OpenAccess vs EF4 comparison matrix shows that POCO is not supported. Is this true?

    http://www.telerik.com/products/orm/openaccess-vs-entity-framework.aspx
  2. IT-Als
    IT-Als avatar
    381 posts
    Member since:
    Sep 2008

    Posted 02 Aug 2010 Link to this post

    Hi abdu,

    I think it depends on how you define POCO support.

    Yes, in OA you can a turn a POCO into a persistent capable object by decorating it with the Persistent attribute.
    On the road map you can also see an item called DTO (data transfer object), which essentially (as far as I have understood it) is a POCO (that may have tracking capabilities).

    So (as always) it depends :-)

    How do you define POCO support?

    Regards

    Henrik
  3. abdu bukres
    abdu bukres avatar
    80 posts
    Member since:
    Mar 2004

    Posted 02 Aug 2010 Link to this post


    I haven't used OpenAccess and so I don't know how the relationship between classes and the persistent layer and functionality are defined. POCO is your regular classes which define your model without any knowledge of your persistent layer.
  4. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 03 Aug 2010 Link to this post

    Hi abdu bukres,
    Poco has some positive things like independence but also has negative effects like lazy loading and change tracking are not working well, reflection has to be used to read and write data, what is slow.

    The OpenAccess approach is to make backend dependent class definitions necessary where you are close to the server and performance counts. As soon as you need poco, for data transport or n-tier applications we provide a generated poco model for you to fulfill your needs. If you are scared about the independence of your layer in a fat client or applications server tier, the recommended way is to use interfaces on top of the persistent model instead of a slower poco model.

    All the best,
    Jan Blessenohl
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. abdu bukres
    abdu bukres avatar
    80 posts
    Member since:
    Mar 2004

    Posted 03 Aug 2010 Link to this post


    Is there sample code or application which exhibits this kind of interfaces?
  6. Serge
    Admin
    Serge avatar
    375 posts

    Posted 06 Aug 2010 Link to this post

    Hi abdu bukres,

    There is in fact a knowledge base article that you can use as a guide to using interfaces with OpenAccess. Please note however that interfaces are only supported while using forward mapping. They are not yet a part of the new Domain Model, we are currently working on them. 


    I hope this is what you are looking for, if not please contact us back.

    Greetings,
    Serge
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top