Is it possible to access the value of an annotation in a model from code.
For example:
[Table("TableA", Schema="SchemaA")]
public class TableA
{
[Key]
public decimal TABLE_ID { get; set; }
}
Is there a way for me to get the TABLE_ID from this model by getting the "KEY" when I don't know what the actual primary key name is?