示例#1
0
 public static ExternalCredentials Map(this ExternalUserEntity entity)
 {
     return(new ExternalCredentials
     {
         ProviderId = entity.externalProviderId,
         ExternalId = entity.externalId
     });
 }
示例#2
0
        public static ExternalUserEntity Map(this ExternalCredentials credentials, Guid userId)
        {
            var entity = new ExternalUserEntity {
                id = userId
            };

            credentials.MapTo(entity);
            return(entity);
        }
示例#3
0
 public static void MapTo(this ExternalCredentials credentials, ExternalUserEntity entity)
 {
     entity.externalProviderId = credentials.ProviderId;
     entity.externalId         = credentials.ExternalId;
 }
示例#4
0
 partial void DeleteExternalUserEntity(ExternalUserEntity instance);
示例#5
0
 partial void UpdateExternalUserEntity(ExternalUserEntity instance);
示例#6
0
 partial void InsertExternalUserEntity(ExternalUserEntity instance);