1、Model 配置 [PrimaryKey(PrimaryKeyType.Assigned,"ID")] 2、使用时要手动赋值 转载于:https://www.cnblogs.com/wdw31210/p/3916244.html