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); }
public UDSStorageFacade(ILogger logger, string xml, string xmlSchema, BiblosDS.BiblosDSManagement.AdministrationClient administrationClient, string dbSchema = "") { _logger = logger; bool validate = UDSModel.ValidateXml(xml, xmlSchema, out List <string> validationErrors); if (!validate) { throw new UDSStorageException(string.Format("UDSStorageFacade - Errore di validazione: {0}", string.Join("\n", validationErrors))); } _udsModel = UDSModel.LoadXml(xml); _udsTableBuilder = new UDSTableBuilder(_udsModel, dbSchema); _administrationClient = administrationClient; }