4
In the ORM I use, classes are mapped using Attributes
. I need to recover the value stored in them. Ex.:
[Table("CADASTRO_CLIENTE")]
public class Cliente
{
[Property("Id")]
public int Id { get; set; }
}
Example of use (fictitious - that’s what I need to know)
var nomeTabela = Cliente.GetTableName();
//nomeTabela seria "CADASTRO_CLIENTE"
I’m using Nhibernate with Activerecord.
Good! Thank you very much.
– Jéf Bueno