started implementation of web db access. can only create new turrets and view current turrets

This commit is contained in:
CornHusker89 2024-12-31 18:31:47 -08:00
parent 21ad7f208a
commit 24a4aa7a20
Signed by: CornHusker
GPG key ID: 8E14D3A95BFFCD7B
7 changed files with 227 additions and 2 deletions

View file

@ -4,8 +4,11 @@ namespace ZenithInfo.Models
{
public class Turret
{
public required string Name { get; set; }
public required string Description { get; set; }
// required by EF Core. see https://learn.microsoft.com/en-us/aspnet/core/blazor/tutorials/movie-database-app/part-2?view=aspnetcore-9.0&pivots=vs#add-a-data-model
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public double Damage { get; set; }
public double Reload { get; set; }
public double Range { get; set; }