コード例 #1
0
 public Core.Domain.Installation.Address Save(Core.Domain.Installation.Address address)
 {
     if (_connection.Get.InsertOrReplace(AddressEntity.FromDomain(address)) > 0)
     {
         return(address.WithId(_connection.LastIndex));
     }
     return(null);
 }
コード例 #2
0
 public InstallationDomain toDomain(LocationMapping location,
                                    Core.Domain.Installation.Address address,
                                    Core.Domain.Installation.Sponsor sponsor)
 => new InstallationDomain(Id,
                           Elevation,
                           IsAirlyInstallation,
                           location,
                           address,
                           sponsor);