I have some global settings
For example some below are
ShortLeaveAllowedInOneDay = 2
LeaveAllowedInMonth = 3
I have following options to store these global settings
1-Store in Database table
2-Store in Webconfig file
3-Store in class as const filed
4-In XML file
Could you please suggest me which one is better approach and why
I am using Asp.net MVC3
with sqlserver 2005
It depends on your requirements, each one of these options has it own advantages and disadvantages. It tried to list a few:
1. Store in Database table
Advantages:
Disadvantages:
2. Store in web.config file
Advantages:
Disadvantages:
web.configmay result in the application pool to restart.3. Store in class as const field
Advantages:
Disadvantages:
4. In XML file
Advantages:
log4netas one such example)Disadvantages: