public class FoundationInfo { [Column("id")] public int ID { get; set; } public InvestType Ctype { get { return (InvestType)Ctype2; } set { Ctype2 = (int)value;} } private int _ctype; [Column("Ctype")] public int Ctype2 { get; set; } } public enum InvestType { 股票=1, 債券 = 2, 貨幣 = 3 }