Exemplo n.º 1
0
        public static LinkedInProfileEntity Map(this LinkedInProfile profile)
        {
            var entity = new LinkedInProfileEntity {
                linkedInId = profile.Id, createdTime = profile.CreatedTime
            };

            profile.MapTo(entity);
            return(entity);
        }
Exemplo n.º 2
0
 public static LinkedInProfile Map(this LinkedInProfileEntity entity, IIndustriesQuery industryQuery, ILocationQuery locationQuery)
 {
     return(new LinkedInProfile
     {
         Id = entity.linkedInId,
         UserId = entity.userId,
         CreatedTime = entity.createdTime,
         LastUpdatedTime = entity.lastUpdatedTime,
         FirstName = entity.firstName,
         LastName = entity.lastName,
         OrganisationName = entity.organisationName,
         Location = entity.LocationReferenceEntity == null ? null : entity.LocationReferenceEntity.Map(locationQuery),
         Industries = entity.LinkedInProfileIndustryEntities == null ? new List <Industry>() : entity.LinkedInProfileIndustryEntities.Map(industryQuery),
     });
 }
Exemplo n.º 3
0
 public static void MapTo(this LinkedInProfile profile, LinkedInProfileEntity entity)
 {
     entity.userId           = profile.UserId;
     entity.lastUpdatedTime  = profile.LastUpdatedTime;
     entity.firstName        = profile.FirstName;
     entity.lastName         = profile.LastName;
     entity.organisationName = profile.OrganisationName;
     if (profile.Industries == null)
     {
         entity.LinkedInProfileIndustryEntities = new EntitySet <LinkedInProfileIndustryEntity>();
     }
     else
     {
         entity.LinkedInProfileIndustryEntities.AddRange((from i in profile.Industries select new LinkedInProfileIndustryEntity {
             linkedInId = entity.linkedInId, industryId = i.Id
         }));
     }
     ((IHaveLocation)profile).MapTo(entity);
 }
Exemplo n.º 4
0
 private void detach_LinkedInProfileEntities(LinkedInProfileEntity entity)
 {
     this.SendPropertyChanging();
     entity.LocationReferenceEntity = null;
 }
Exemplo n.º 5
0
 partial void DeleteLinkedInProfileEntity(LinkedInProfileEntity instance);
Exemplo n.º 6
0
 partial void UpdateLinkedInProfileEntity(LinkedInProfileEntity instance);
Exemplo n.º 7
0
 partial void InsertLinkedInProfileEntity(LinkedInProfileEntity instance);