Skip to content

Add batch import capabilities#2

Open
d-markey wants to merge 2 commits into
Njabulo240:masterfrom
d-markey:master
Open

Add batch import capabilities#2
d-markey wants to merge 2 commits into
Njabulo240:masterfrom
d-markey:master

Conversation

@d-markey

@d-markey d-markey commented Aug 4, 2025

Copy link
Copy Markdown

Here's a PR to enable importing employees, devices and offices.

I've implemented a custom DAL to batch-insert the items, including a cache to resolve brands/categories/suppliers and a functionality to avoid inserting duplicate entries in the tables. It relies on CSV files which are parsed using https://www.nuget.org/packages/TinyCsvParser.

Feel free to integrate if you find this interesting. I'm sure the custom DAL could be improved but I chose to keep it simple.

Based on a custom-built DAL to import multiple rows on one DB-roundtrip + transaction support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant