From e3e91e39608da1b6fbe332c083fcf59bffd0902f Mon Sep 17 00:00:00 2001 From: yubaolee Date: Tue, 16 Mar 2021 00:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=88=9B=E5=BB=BAId=E6=96=B9=E5=BC=8F=EF=BC=8C=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E7=9B=B4=E6=8E=A5=E5=BE=97=E5=88=B0=E6=96=B0=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E7=9A=84Id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.Repository/Core/IntAutoGenEntity.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenAuth.Repository/Core/IntAutoGenEntity.cs b/OpenAuth.Repository/Core/IntAutoGenEntity.cs index b1d519e2..c7966288 100644 --- a/OpenAuth.Repository/Core/IntAutoGenEntity.cs +++ b/OpenAuth.Repository/Core/IntAutoGenEntity.cs @@ -21,6 +21,7 @@ namespace OpenAuth.Repository.Core public override void GenerateDefaultKeyVal() { //主键自动增长类型,可以不用该方法生成主键,设置该方法为空方法即可 + //当DbContext执行SaveChanges()后,如果添加成功,可以直接获取对象的Id } } } \ No newline at end of file