Start migration to asp .net core + entity framework core

This commit is contained in:
asesidaa
2023-02-08 21:33:22 +08:00
parent aea09c2c8b
commit f7761f200f
56 changed files with 2798 additions and 0 deletions
@@ -0,0 +1,24 @@
using Domain.Entities;
using Infrastructure.Persistence;
using Microsoft.AspNetCore.Mvc;
namespace MainServer.Controllers.API
{
[Route("api/[controller]")]
[ApiController]
public class TestController : ControllerBase
{
private readonly MusicDbContext context;
public TestController(MusicDbContext context)
{
this.context = context;
}
[HttpGet]
public MusicUnlock GetOne()
{
return context.MusicUnlocks.First();
}
}
}