Let's say I have this class:
public class FooBar
{
public long Id {get; set;}
public string BarFoo {get; set;}
}
OrmLite when using postgresql will create table name foo_bar and columns id, and bar_foo.
I can get the table name for use in a custom query like so:
db.ExecuteSql($"INSERT INTO {db.GetTableName<SomeOtherClass>()}(bar_foo) SELECT bar_foo FROM {db.GetTableName<FooBar>()}");
If the naming convention changes or the property is re-named then the query breaks because the column bar_foo is defined as a string.
How do I define the column names in the same fashion I am defining the table names?