fixed something?

This commit is contained in:
net 2021-06-16 21:51:03 +02:00
parent 28672466a2
commit 9e642d9ee6
3 changed files with 14 additions and 2 deletions

View File

@ -8,8 +8,10 @@ namespace ProjectGrid.Data
public class MapData
{
[Key]
[Column("MapId")]
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
[Required]
public uint Width { get; set; }

View File

@ -5,14 +5,18 @@ using System.ComponentModel.DataAnnotations;
namespace ProjectGrid.Data
{
[Table("Tile", Schema = "Map")]
public class MapData
public class TileData
{
[Key]
[Column("MapId")]
[Column("TileId")]
public int Id { get; set; }
public int MapId { get; set; }
public string Name { get; set; }
public string Description { get; set; }
[ForeignKey("MapId")]
public virtual MapData map { get; set; }
[Required]
[Column("PosX")]
public uint X { get; set; }

6
package-lock.json generated Normal file
View File

@ -0,0 +1,6 @@
{
"name": "ProjectGrid.backend",
"lockfileVersion": 2,
"requires": true,
"packages": {}
}