Ejemplo n.º 1
0
 public static MeasurementEntity FromDomain(MeasurementDomain domain)
 => new MeasurementEntity(domain.Id,
                          domain.InstallationExternalId,
                          domain.UpdateDateTime,
                          domain.FromDateTime,
                          domain.TillDateTime,
                          MeasurementValueEntity.FromDomain(domain.Values),
                          MeasurementIndexEntity.FromDomain(domain.Indexes),
                          MeasurementStandardEntity.FromDomain(domain.Standards));
Ejemplo n.º 2
0
 public MeasurementDomain ToDomain()
 => new MeasurementDomain(Id,
                          InstallationExternalId,
                          UpdateDateTime,
                          FromDateTime,
                          TillDateTime,
                          MeasurementValueEntity.ToDomain(Values),
                          MeasurementIndexEntity.ToDomain(Indexes),
                          MeasurementStandardEntity.ToDomain(Standards));