Weather Data Collector is a console application that demonstrates Dependency Injection (DI) by retrieving weather data from multiple sources and storing it in a database. The project is designed to show how different data sources can be integrated seamlessly using DI principles.
- API Source: Retrieves real-time weather data from an external weather API called OpenWeatherAPI.
- XML File Source: Reads weather data from a local XML file.
- Uses DI to swap between different data sources.
- Makes it easier to extend and maintain code.
- Stores retrieved weather data in a Microsoft SQL Server database using EF.
- Database oeprations are handled with a dedicated service class.
- Parses JSON responses from the API.
- Reads and extracts weather data from XML files.
- C# with .NET – Core programming language.
- Entity Framework Core – ORM for database.
- Microsoft SQL Server – Database management system.