Loading…
Loading…
C# · ASP.NET Core
.NET apps are ASP.NET Core with Entity Framework Core, ASP.NET Identity for auth, xUnit tests, and minimal APIs. Built as a multi-stage Docker image with appsettings per environment.
Every .NET app generated by Archiet ships with these baseline pieces. No template-cutting, no placeholder TODOs.
One representative file from a generated .NET app. Your generated output will include many more files like this one, customized to the entities and flows in your blueprint.
[ApiController]
[Route("items")]
[Authorize]
public class ItemsController : ControllerBase
{
private readonly AppDbContext _db;
public ItemsController(AppDbContext db) { _db = db; }
[HttpPost]
public async Task<ActionResult<Item>> Create([FromBody] CreateItemDto dto)
{
var userId = User.FindFirstValue(ClaimTypes.NameIdentifier);
var item = new Item { Name = dto.Name, CreatedById = userId };
_db.Items.Add(item);
await _db.SaveChangesAsync();
return CreatedAtAction(nameof(Get), new { id = item.Id }, item);
}
}Pick .NET when you're in a Microsoft enterprise shop, need first-class Windows tooling, or want the strongest-typed option on this list. Excellent for regulated industries.