Exemplo n.º 1
0
 public static InstallationEntity FromDomain(InstallationDomain domain)
 => new InstallationEntity(domain.Id,
                           domain.ExternalId,
                           domain.IsAirly,
                           domain.Location.Latitude,
                           domain.Location.Longitude,
                           domain.Location.Elevation,
                           InstallationAddressEntity.FromDomain(domain.Address),
                           InstallationSponsorEntity.FromDomain(domain.Sponsor));
Exemplo n.º 2
0
 public InstallationEntity(long?id,
                           long externalId,
                           bool isAirly,
                           double latitude,
                           double longitude,
                           double elevation,
                           InstallationAddressEntity address,
                           InstallationSponsorEntity sponsor)
 {
     Id         = id;
     ExternalId = externalId;
     IsAirly    = isAirly;
     Latitude   = latitude;
     Longitude  = longitude;
     Elevation  = elevation;
     Address    = address;
     Sponsor    = sponsor;
 }