Ejemplo n.º 1
0
        public UDSRelationFacade(string xml, string xmlSchema, string dbSchema = "dbo")
        {
            bool validate = UDSModel.ValidateXml(xml, xmlSchema, out List <string> validationErrors);

            if (!validate)
            {
                throw new UDSRelationException(string.Format("UDSRelationFacade - Errori di validazione Xml: {0}", string.Join("\n", validationErrors)));
            }
            _uds     = UDSModel.LoadXml(xml);
            _builder = new UDSTableBuilder(UDS, dbSchema);
        }
Ejemplo n.º 2
0
 public UDSRelationFacade(UDSModel uds, string dbSchema = "dbo")
 {
     _uds     = uds;
     _builder = new UDSTableBuilder(UDS, dbSchema);
 }