Pregunta

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

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top