From 28672466a248a783488e51c3ec4b3af2aae643bb Mon Sep 17 00:00:00 2001 From: net Date: Tue, 15 Jun 2021 22:08:01 +0200 Subject: [PATCH] added TileData --- Data/TileData.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Data/TileData.cs diff --git a/Data/TileData.cs b/Data/TileData.cs new file mode 100644 index 0000000..1003756 --- /dev/null +++ b/Data/TileData.cs @@ -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; } + } +}