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.
嗨,我正在通过 nhibernate 将一行数据插入到表中,如何获取最后插入行的 Id(自动编号)?请帮我...
Nhibernate 会自动完成。如果您输入实体 ID generator="native" 的映射并设置所需属性的名称