public PrivateMessageRepository() { this.context = new Torrent_dbEntities(); this.userID = context.Users .Where(u => u.Login == HttpContext.Current.User.Identity.Name) .Select(u => u.UserID) .SingleOrDefault(); }
public CustomMembershipProvider() { context = new Torrent_dbEntities(); }
public CustomRoleProvider() { context = new Torrent_dbEntities(); }