开发者

How do you do Automatic Select clauses if you dont have a WHERE statement?

开发者 https://www.devze.com 2023-03-11 18:02 出处:网络
In the documentation it says you can decorate the POCO with the table name and primary key column so you dont have to specify the SELECT * FROM开发者_Python百科 TABLENAME an can just use WHERE...

In the documentation it says you can decorate the POCO with the table name and primary key column so you dont have to specify the SELECT * FROM开发者_Python百科 TABLENAME an can just use WHERE...

How do you use this feature if you dont have a WHERE clause?


Just use an empty string.

var data = db.Fetch<User>("");
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号