Prenez cette classe par exemple:C# travailler avec les membres Décorés
public class Applicant : UniClass<Applicant>
{
[Key]
public int Id { get; set; }
[Field("X.838.APP.SSN")]
public string SSN { get; set; }
[Field("APP.SORT.LAST.NAME")]
public string FirstName { get; set; }
[Field("APP.SORT.FIRST.NAME")]
public string LastName { get; set; }
[Field("X.838.APP.MOST.RECENT.APPL")]
public int MostRecentApplicationId { get; set; }
}
Comment puis-je obtenir toutes les propriétés qui sont décorées avec l'attribut de champ, obtenir leurs types, puis attribuez-lui une valeur pour les ?