Junior — Middle
What technological stack do you use in your projects?
sobes.tech AI
Answer from AI
In C# projects, I often use the following technology stack:
- .NET Core / .NET 5+ — for creating cross-platform applications.
- Entity Framework Core — for working with databases via ORM.
- ASP.NET Core — for developing web applications and APIs.
- SQL Server or PostgreSQL — depending on the database requirements.
- xUnit / NUnit — for writing unit tests.
- Docker — for containerizing applications.
- Git — for version control.
Example of a simple controller in ASP.NET Core:
[ApiController]
[Route("api/[controller]")]
public class ProductsController : ControllerBase
{
private readonly ApplicationDbContext _context;
public ProductsController(ApplicationDbContext context)
{
_context = context;
}
[HttpGet]
public async Task<IEnumerable<Product>> Get()
{
return await _context.Products.ToListAsync();
}
}