dataobjects.net

Can DataObjects.NET support SQL identity columns?

限于喜欢 提交于 2019-12-10 12:22:36
问题 While there's lots to like about DataObjects.NET, I've found help resources to be a lean, and can't find a solit example of using DataObjects.NET with RDBMS generated primary keys. It would seem as though D4O won't do inserts against SQL Server unless it's in controll of the key. Has anyone solved this in the wild? 回答1: There is no easy way to make DO4 use IDENTITY columns - mainly, because it is designed to rely on bulk key generation (aka HiLo algorithm). AFAIK, there are no good