Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top