Whoever
Whoever

Reputation: 1399

Can you map column name in SqlFu?

Everything else about this micro ORM looks great, except I can't figure out how to map column name, like

[Column("db_username")]
public string UserName {get;set;}

Did I miss something? Thanks

Upvotes: 0

Views: 956

Answers (1)

MikeSW
MikeSW

Reputation: 16348

You can't do that, SqlFu is a data mapper, mapping a query result to a poco. The attributes used to decorate a Poco are for table creation only and not for querying. So, there's no mapping in an ORM sense.

Upvotes: 2

Related Questions