コード例 #1
0
        public override string[] GetRolesForUser(string firstname)
        {
            libEntities db = new libEntities();

            string s = db.members.Where(x => x.firstname == firstname).FirstOrDefault().role;

            string[] results = { s };
            return(results);
        }