Example #1
0
 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();
 }
Example #2
0
 public CustomMembershipProvider()
 {
     context = new Torrent_dbEntities();
 }
Example #3
0
 public CustomRoleProvider()
 {
     context = new Torrent_dbEntities();
 }