23 lines
635 B
C#
23 lines
635 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace OSS.Models
|
|
{
|
|
public class Ward
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public long WardID { get; set; }
|
|
[Required]
|
|
public string DistrictCode{ get; set; }
|
|
[Required]
|
|
public string WardName { get; set; }
|
|
public string DistrictName { get; set; }
|
|
[ForeignKey("DistrictCode")]
|
|
public virtual District Districts { get; set; }
|
|
}
|
|
} |