An open API service indexing awesome lists of open source software.

https://github.com/artonh/generic-model-to-migrate-xml-data-into-sqlserver-

This code is designed for a generic model to assign XML values and pass them to a Database Server. In a previous project, I faced a comparable situation where I had to read, validate, and modify XML data prior to executing database migrations with the object that encapsulated the values.
https://github.com/artonh/generic-model-to-migrate-xml-data-into-sqlserver-

migration tsql xml

Last synced: 8 months ago
JSON representation

This code is designed for a generic model to assign XML values and pass them to a Database Server. In a previous project, I faced a comparable situation where I had to read, validate, and modify XML data prior to executing database migrations with the object that encapsulated the values.

Awesome Lists containing this project

README

          

# Generic-model-to-assign-XML

It's a piece of code for the generic model to assign XML values and passing them to DatabaseServer!

I had a similar scenario (in one of my projects), reading the XML data and checking and manipulating before running the migrations to the Database Server
with the object that contians these values!

Suppose that:
*1 you have more columns on that file than you actually need --- reffer to: arrProperty2Check
*2 you are itterating in that file, each rows then each columns and you have to assign values to the dictionary --- arrPropertyCommingFromAnotherSource

*** In this way you have passed the way around to itterate in XML rows and columns,
assigning values each of strings above and finally writing the hardcoded object
as key pair to pass at the Insert statment of any Database wrapper you're using! ***