Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
关于这个微型 ORM 的其他一切看起来都很棒,除了我不知道如何映射列名,比如
[Column("db_username")] public string UserName {get;set;}
我错过了什么?谢谢
你不能那样做,SqlFu 是一个数据映射器,将一个查询结果映射到一个 poco。用于装饰 Poco 的属性仅用于创建表,不用于查询。因此,在 ORM 意义上没有映射。