24 lines
480 B
C#
24 lines
480 B
C#
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; }
|
|
}
|
|
}
|