2025年12月17日 星期三

[C#] NotMapped 從資料庫對應中排除屬性或類別

表示應該從資料庫對應中排除屬性或類別。
using System.ComponentModel.DataAnnotations.Schema;

public partial class TeamPlus_msg
{
   public string Account_List { get; set; }

   [NotMapped]
   public int MsgType { get; set; }
}

沒有留言:

張貼留言