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.
- Host: GitHub
- URL: https://github.com/artonh/generic-model-to-migrate-xml-data-into-sqlserver-
- Owner: artonh
- Created: 2022-09-29T19:00:25.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-28T19:30:08.000Z (over 3 years ago)
- Last Synced: 2024-12-27T16:33:09.076Z (over 1 year ago)
- Topics: migration, tsql, xml
- Language: C#
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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! ***