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.
我有一个包含表的 sql server 数据库。我正在通过 ef 访问数据。该表包含一个“时间戳”列。我想按时间戳查询表,以便找到最后修改的项目并向用户显示此修改的日期和时间。
怎么做?
var result = this.context.YourEntity .OrderByDescending(gt=> gt.TimeStamp) .FirstOrDefault();