public static ExternalCredentials Map(this ExternalUserEntity entity) { return(new ExternalCredentials { ProviderId = entity.externalProviderId, ExternalId = entity.externalId }); }
public static ExternalUserEntity Map(this ExternalCredentials credentials, Guid userId) { var entity = new ExternalUserEntity { id = userId }; credentials.MapTo(entity); return(entity); }
public static void MapTo(this ExternalCredentials credentials, ExternalUserEntity entity) { entity.externalProviderId = credentials.ProviderId; entity.externalId = credentials.ExternalId; }
partial void DeleteExternalUserEntity(ExternalUserEntity instance);
partial void UpdateExternalUserEntity(ExternalUserEntity instance);
partial void InsertExternalUserEntity(ExternalUserEntity instance);