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; } } }