66 lines
1.8 KiB
C#
66 lines
1.8 KiB
C#
using Church.Net.Entity.Interface;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Church.Net.Entity
|
|
{
|
|
public class NewVisitor:IEntity
|
|
{
|
|
[Key]
|
|
public string Id { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("名字")]
|
|
[Required]
|
|
public string FirstName { get; set; }
|
|
[StringLength(50)]
|
|
[DisplayName("姓氏")]
|
|
[Required]
|
|
public string LastName { get; set; }
|
|
|
|
[DisplayName("性別")]
|
|
public Enumeration.Gender Gender { get; set; }
|
|
[StringLength(500)]
|
|
|
|
[DisplayName("地址")]
|
|
public string Address { get; set; }
|
|
[StringLength(150)]
|
|
[DisplayName("電話")]
|
|
[Required]
|
|
public string Phone { get; set; }
|
|
[StringLength(150)]
|
|
|
|
[DisplayName("E-Mail")]
|
|
public string Email { get; set; }
|
|
[StringLength(50)]
|
|
|
|
[DisplayName("社群軟體ID")]
|
|
public string ComunityAppId { get; set; }
|
|
[DisplayName("首次參加主日時間")]
|
|
public DateTime VisitingDate { get; set; }
|
|
|
|
[System.ComponentModel.DataAnnotations.Schema.NotMapped]
|
|
public bool HideBirthDate { get; set; }
|
|
|
|
[DisplayName("生日")]
|
|
public DateTime? BirthDate { get; set; }
|
|
|
|
[DisplayName("附註")]
|
|
public string Note { get; set; }
|
|
|
|
[ForeignKey("Religion")]
|
|
public int? ReligionId { get; set; }
|
|
public Religion Religion { get; set; }
|
|
|
|
//[ForeignKey("VisitingReason")]
|
|
//public int VisitingReasonId { get; set; }
|
|
//public VisitingReason VisitingReason { get; set; }
|
|
}
|
|
}
|