added TileData
This commit is contained in:
parent
c01db4a04b
commit
28672466a2
|
|
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue