DataTransformer is a Web API solution for uploading a csv file and writing it MSSQL Database and JSON file simultaneously.
The solution has 5 project:
The actual interface through which clients can work with our API was implemented through ASP.NET Core and Entity Framework Core Code First. Project for controllers, mapping between domain model and API model, API configuration (DB and JSON DBContext configuration).
This folder is for controller classes. There is only one controller "FileUploaderController" for uploading csv file.
POST http://localhost:52825/api/fileuploader
{ "Path":"C:\Users\etimtez\Desktop\iru-assignment-2018.csv" }
This folder is for executing for fileuploader, calling Business projects classess for converting API models to Logic (Domain) and and Logic (Domain) models to Data Models.
Project for API models.
Project for all logic processes.
This folder is for reading file operation.
This folder is for converting CSV files to Domain models.
This folder is for convering Domain models to Data models for storage interaction.
This folder is for convering Data models to Domain models for API.
Project for Data models.
Projects for interfaces and implementations of Repository pattern and Unit Of Work pattern, implementation Database Contexts for DB and JSON and accessing storages.
This folder is for implementation of DBContexts.
These folders are for implementation of Repository and Unit Of Work patterns.
This folder is for every data models database accessing by using their own repositories and their own dbcontexts. Dependecy Injection was used this implementations.