Esempio n. 1
0
        public static Contract FromDasFile(string dasXml)
        {
            var contract  = new Contract();
            var xDoc      = XDocument.Parse(dasXml);
            var process   = xDoc.Descendants("Main").First();
            var dataModel = xDoc.Descendants("DataModel").First();

            contract.Process  = ProcessFactory.FromDasFile(process);
            contract.Entities = EntityFactory.FromDasFile(dataModel);
            return(contract);
        }