コード例 #1
0
 public ICustomPrincipal(ClientUserData clientUserData)
 {
     this.Identity = new GenericIdentity(string.Format("{0}_{1}", clientUserData.UserId, clientUserData.EmpName));
     Mapper.DynamicMap(clientUserData, this);
 }
コード例 #2
0
 public ICustomPrincipal(ClientUserData clientUserData)
 {
     this.Identity = new GenericIdentity(string.Format("{0}_{1}", clientUserData.UserId, clientUserData.OrgId));
     Mapper.CreateMap <ClientUserData, ICustomPrincipal>();
     Mapper.Map(clientUserData, this);
 }