我有一個類EmployeeModel
,我有如下性質太獲取所有屬性的屬性,在C類#
[Column("FirstName")]
public string First { get; set; }
我需要使用實體來獲得上述Column
屬性的另一種方法。
我有一個類EmployeeModel
,我有如下性質太獲取所有屬性的屬性,在C類#
[Column("FirstName")]
public string First { get; set; }
我需要使用實體來獲得上述Column
屬性的另一種方法。
typeof(EmployeeModel).GetProperty(」First」).GetCustomAttributes(...)
+1爲能夠得到這樣的回答,指出問題。 :) – paqogomez
對不起,我得到了答案.... thnx ......只是再試一次.... :) thnk你這麼多... –
你能否詳細說明的問題 – Nilesh