henkmollema / Dommel

CRUD operations with Dapper made simple.
MIT License
611 stars 99 forks source link

could you add a method to set the table name #276

Closed xiaodongcool closed 2 years ago

xiaodongcool commented 2 years ago

It can be in the form of arguments or variables

such as 
var item = conn.Get<T>(123,tablename:"table001");

or
conn.SetTableName(typeof(T),"table001")
var item = conn.Get<T>(123);
henkmollema commented 2 years ago

No. You can change the table name using the [Table("...")] attribute.