I'm using Linq2DB
, LinqToDB.Mapping
to map the tables from database.
The class name has a Data Annotation named "Table" to specify the name of the table in de DB. For example:
[Table(@"EXAMPLE_ONLINE")]
public class Example
{
[Column(@"ID_EXAMPLE")]
public ulong IdExample { get; set; }
[Column(@"DESCRIPTION")]
public string Description { get; set; }
}
How can I get that table name from that Data annotation? Is tehere something like a
Example.GetTableName()
Thank you