OpenAccess model using tables from Sitefinity.mdf

Posted by Community Admin on 04-Aug-2018 20:34

OpenAccess model using tables from Sitefinity.mdf

All Replies

Posted by Community Admin on 10-Jan-2012 00:00

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.

Posted by Community Admin on 10-Jan-2012 00:00

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.

This thread is closed