作者wise2525 (Allegro)
看板C_Sharp
标题[问题] mvc关於identity扩充栏位抓取
时间Mon Sep 10 14:32:47 2018
mvc如果要使用预设会员登入系统的话
抓取系统预设栏位的值时
只需要一行
User.Identity.GetUserName()
User.Identity.GetUserId()
等等就能轻松抓出来
但假如说今天是要抓扩充栏位的值
比如自己加的CId ,Gender等等栏位
请问要如何实现如上一样的方式呢
请问有大大能够教学一下吗><
-----
Sent from JPTT on my HTC_U-3u.
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 123.195.90.98
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1536561171.A.E6F.html
1F:推 wezmag: Google “user identity get custom property” 第一个Sta 09/10 19:35
2F:→ wezmag: ckoverflow点进去 09/10 19:35