Beispiel #1
0
 private static IEnumerable <string> GetMissingRequiredPropertyNames(IXRoadSerializable dtoObject, IXmlTemplateNode templateNode, XRoadMessage message)
 {
     return(templateNode.ChildNames
            .Select(n => templateNode[n, message.Version])
            .Where(n => n.IsRequired)
            .Where(n => !dtoObject.IsSpecified(n.Name))
            .Select(n => n.Name));
 }
Beispiel #2
0
 private IEnumerable <PropertyDefinition> GetMissingRequiredProperties(IXRoadSerializable dtoObject, IXmlTemplateNode templateNode, XRoadMessage message)
 {
     return(templateNode.ChildNames
            .Select(n => templateNode[n, message.Version])
            .Where(n => n.IsRequired)
            .Where(n => !dtoObject.IsSpecified(n.Name))
            .Select(n => deserializationPropertyMaps[n.Name].Definition));
 }