/// <summary> /// override of BuildDataflowQuery, populate a ConstraintObject if is present /// </summary> /// <param name="dataflowRefType">the <see cref="Org.Sdmx.Resources.SdmxMl.Schemas.V20.registry.DataflowRefType"/></param> /// <returns></returns> protected override IStructureReference BuildDataflowQuery(Org.Sdmx.Resources.SdmxMl.Schemas.V20.registry.DataflowRefType dataflowRefType) { return(new ConstrainableStructureReference(base.BuildDataflowQuery(dataflowRefType)) { ConstraintObject = dataflowRefType.Constraint }); }
/// <summary> /// Populate the <paramref name="dataflowRef"/> from <paramref name="crossReference"/> /// </summary> /// <param name="crossReference"> /// The cross reference. /// </param> /// <param name="dataflowRef"> /// The reference to populate /// </param> internal void PopulateDataflowRef(ICrossReference crossReference, DataflowRefType dataflowRef) { IMaintainableRefObject maintRef = crossReference.MaintainableReference; dataflowRef.URN = crossReference.TargetUrn; string str1 = maintRef.AgencyId; if (!string.IsNullOrWhiteSpace(str1)) { dataflowRef.AgencyID = maintRef.AgencyId; } string str2 = maintRef.MaintainableId; if (!string.IsNullOrWhiteSpace(str2)) { dataflowRef.DataflowID = maintRef.MaintainableId; } string str3 = maintRef.Version; if (!string.IsNullOrWhiteSpace(str3)) { dataflowRef.Version = maintRef.Version; } }