Example #1
0
        static Stores()
        {
            switch (DALImplementation)
            {
                case "MSSql":
                    UserStore = new UserSqlStore();
                    AwardStore = new AwardSqlStore();
                    AuthStore = new AuthSqlStore();
                    break;

                case "Xml":
                    UserStore = new UserXmlStore();
                    AwardStore = new AwardXmlStore();
                    AuthStore = new AuthXmlStore();
                    break;

                default:
                    throw new ArgumentException("Incorrect file configuration");
            }
        }
Example #2
0
 static Stores()
 {
     UserStore = new UserXmlStore();
     AwardStore = new AwardXmlStore();
 }