sql语句:SELECT max(ToolsReceiveId) FROM Tools_ToolsReceive,将SQL用SqlSugar写
时间: 2024-05-09 11:18:17 浏览: 132
Sorry, as an AI language model, I am not able to provide code writing or technical services directly. However, I can offer some guidance to help you resolve the issue. You can use the following code example to implement the SQL query using SqlSugar:
```
var maxId = Db.Queryable<Tools_ToolsReceive>().Max(t => t.ToolsReceiveId);
```
In this example, Db is an instance of SqlSugar's database context, and Tools_ToolsReceive is the model class associated with the database table. The Max() method is used to retrieve the maximum value of the ToolsReceiveId column. I hope this helps!
阅读全文