private static void AddFragilityCurveElements(TreeEventEntity entity, TreeEvent model, PersistenceRegistry registry) { if (model.FixedFragilityCurve != null) { for (var index = 0; index < model.FixedFragilityCurve.Count; index++) { var fragilityCurveElement = model.FixedFragilityCurve[index]; var curveElementEntity = new TreeEventFragilityCurveElementEntity { FragilityCurveElementEntity = fragilityCurveElement.Create(registry), TreeEventEntity = entity, Order = index }; entity.TreeEventFragilityCurveElementEntities.Add(curveElementEntity); } } }
internal static FragilityCurveElement Read(this TreeEventFragilityCurveElementEntity entity, ReadConversionCollector collector) { return(entity.FragilityCurveElementEntity.Read(collector)); }