简体   繁体   中英

ASP.NET Membership - Search users

如何对默认ASP.NET成员资格提供程序存储的成员资格数据执行搜索(例如,按用户名)?

  var currentUser = Membership.GetUser(User.Identity.Name); 

在这之后,您检查currentUser是否为null

I found out that I could import the membership schema into my own database and create the models using Entity Framework. This allows me to search by any fields and criterion I wish.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM