Sobes.tech
Junior — Middle

What tools and frameworks have you used for server-side development?

sobes.tech AI

Answer from AI

Tools and frameworks commonly used for developing server-side in C# include:

  • ASP.NET Core — a modern, cross-platform framework for building web applications and APIs. It allows creating RESTful services, supports middleware, dependency injection, and more.
  • Entity Framework Core — an ORM for working with databases, simplifying data access and manipulation through objects.
  • SignalR — a library for implementing real-time communications, such as chats or notifications.
  • Swagger / Swashbuckle — for automatic API documentation generation.

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();
    }
}