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.
我正在执行 InserAsync,SQL 查询返回生成的 Id,但实体的整数标识列为零。
为什么它不更新标识列?它在 Insert 时有效,但在 InsertAsync 时无效。这就是生活...
我使用了不带异步的 Insert 并Task.FromResult(0);从该方法返回。
Task.FromResult(0);
繁荣,这将学习他们。