首先開啟昨天定義的partial class ,並實作IValidatableObject介面. 在IValidatableObject文字上按滑鼠右鍵選擇實作介面. 透過上述步驟產生Validate方法.
確定! 回上一頁