public ProfileService() { //HACK: Hardcoded values!!! NameValueCollection config = new NameValueCollection(); config.Add("connectionStringName", "arachnode_net_ConnectionString"); config.Add("applicationName", "arachnode.net"); SqlProfileProvider.Initialize("SqlProfileProvider", config); }
public ActionResult Details(Guid id) { SqlProfileProvider myProfileProvider = new SqlProfileProvider(); var user = Membership.GetUser(id); ViewData["Title"] = "User Details :" + user.UserName + ""; var data = new UserManagementModel.MembershipUserAndRolesViewData { User = user, UsersRoles = Roles.GetRolesForUser(user.UserName).OrderBy(x => x).ToList(), UserDetails = ser.GetUserDetails(id), }; if (Request != null && Request.IsAjaxRequest()) { return(PartialView("Details", data)); } return(View(data)); }
public virtual ViewResult UserDetails(Guid id) { // int recordsReturned; SqlProfileProvider myProfileProvider = new SqlProfileProvider(); var user = Membership.GetUser(id); ViewData["Title"] = "User Details (" + user.UserName + ")"; var data = new Hotels.ClientDataModel.MetaData.Hotel.UserManagementModel.MembershipUserAndRolesViewData { RolesEnabled = Roles.Enabled, RequiresQuestionAndAnswer = Membership.RequiresQuestionAndAnswer, User = user, AllRoles = Roles.GetAllRoles().OrderBy(x => x).ToList(), UsersRoles = Roles.GetRolesForUser(user.UserName).OrderBy(x => x).ToList(), UserDetails = ser.GetUserDetails(id), //UserProfiles = myProfileProvider.FindProfilesByUserName(ProfileAuthenticationOption.Authenticated,user.UserName,0,1, out recordsReturned ) }; ViewData["User"] = data; return(View("DisplayUser")); }
internal static void PerformConnectionOverrideInitialize(SqlProfileProvider sqlProvider, BaseProviderInitializer baseInitializer, string name, NameValueCollection config) { PerformSqlProviderConnectionOverrideInitialize(sqlProvider, baseInitializer, name, config); }