public InstallationEntity(int id, string location, string address, CurrentEntity currentEntity)
 {
     Id            = id;
     Location      = location;
     Address       = address;
     CurrentEntity = currentEntity;
 }
 public static Measurements ToMeasurement(this CurrentEntity currentEntity)
 => currentEntity.Pipe(it => new Measurements(
                           new Current(it.FromDateTime, it.TillDateTime, it.Values.Map(v => v.ToValue()).ToList(),
                                       it.IndexEntities.Map(i => i.ToIndex()).ToList(),
                                       it.Standards.Map(s => s.ToStandard()).ToList()
                                       )));