added TileData

This commit is contained in:
net 2021-06-15 22:08:01 +02:00
parent c01db4a04b
commit 28672466a2
1 changed files with 23 additions and 0 deletions

23
Data/TileData.cs Normal file
View File

@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace ProjectGrid.Data
{
[Table("Tile", Schema = "Map")]
public class MapData
{
[Key]
[Column("MapId")]
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
[Required]
[Column("PosX")]
public uint X { get; set; }
[Required]
[Column("PosY")]
public uint Y { get; set; }
}
}