문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top