More in this section

Forums / Developing with Sitefinity / OpenAccess model using tables from Sitefinity.mdf

OpenAccess model using tables from Sitefinity.mdf

2 posts, 0 answered
  1. Andrey
    Andrey avatar
    1 posts
    Registered:
    10 Jan 2012
    10 Jan 2012
    Link to this post
    Hi All! Please could you advice - if I want to use some data handled by CMS (as far as I understand they are kept in Sitefinity.mdf) in my OpenAccess model - is it acceptable aproach?
    I want to use registered customers, etc. in my model.

    Andrey.
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    10 Jan 2012
    Link to this post
    do you mean that you want to create new data models that include fields backed by tables in the Sitefinity database? I don't think this is recommended. Although the data provider for Sitefinity is OpenAccess there is a lot of custom table associations that would need to be left intact to keep the integrity of the data.

    Your best bet is to use the public objects exposed by the API. Alternatively it is possible to create custom providers that keep the native access but allow you to extend them with your own methods and properties.

    If you tell me more about what you're trying to accomplish I can try to give you some options. However, I don't think accessing the db directly is at all recommended or supported.
2 posts, 0 answered