This is a migrated thread and some comments may be shown as answers.

Save Setting Project in database

1 Answer 67 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 13 Dec 2012, 09:20 AM
Hi,

How to save and load setting into database for example textbox string save into database and load,
I previously used the xml format for save and load project.

It is very important to me please help.

Thanks so much.

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivailo
Telerik team
answered on 18 Dec 2012, 08:40 AM
Hello John,

If I understood you correctly, you would like to save and load your configuration settings to the database instead of a configuration file? In such case I guess you would have some database table for storing the settings. You can map it to a class and use that class as a configuration settings repository. You would utilize it the way you perform the normal CRUD operations with OpenAccess ORM. For code samples you can also download the OpenAccess SDK

In addition, feel free to build your own logic on top of the class depending on the specifics of your scenario. For instance, if you are storing the settings in only one row (each column being a separate setting), you can create a derived or composed singleton implementation to ensure that your application is accessing the first row only.

Let me know if my assumption was wrong or in case you need any further clarifications.


Regards,
Ivailo
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
Tags
Getting Started
Asked by
John
Top achievements
Rank 1
Answers by
Ivailo
Telerik team
Share this question
or