Ejemplo n.º 1
0
        /// <summary>
        /// Default constructor that initializes a new MySQLDatabase
        /// instance using the Default Connection string
        /// </summary>
        public CCEngUserStore(DbContext context) : base(context)
        {
            //new UserStore<TUser>(new DataBase.EsunEntities());
            var database = new SetengUser();

            Database        = database;
            userTable       = new UserTable <TUser>(database);
            roleTable       = new RoleTable(database);
            userRolesTable  = new UserRolesTable(database);
            userClaimsTable = new UserClaimsTable(database);
            userLoginsTable = new UserLoginsTable(database);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor that takes a MySQLDatabase as argument
 /// </summary>
 /// <param name="database"></param>
 public RoleStore(SetengUser database)
 {
     Database  = database;
     roleTable = new RoleTable(database);
 }