In the ORM I use, classes are mapped using Attributes
. I need to retrieve the value stored in them. Ex.:
[Table("CADASTRO_CLIENTE")]
public class Cliente
{
[Property("Id")]
public int Id { get; set; }
}
Example usage (fictional - this is what I need to know)
var nomeTabela = Cliente.GetTableName();
//nomeTabela seria "CADASTRO_CLIENTE"
I'm using NHibernate with ActiveRecord.