修改仓储方法

This commit is contained in:
不做码农 2021-10-17 17:35:45 +08:00
parent fe05697687
commit 9980386e9c
2 changed files with 3 additions and 2 deletions

View File

@ -14,11 +14,12 @@ namespace ZR.Repository
[AppService(ServiceLifetime = LifeTime.Transient)] [AppService(ServiceLifetime = LifeTime.Transient)]
public class GendemoRepository : BaseRepository<Gendemo> public class GendemoRepository : BaseRepository<Gendemo>
{ {
public GendemoRepository() : base(configId: 1) public GendemoRepository() : base(configId: "1")
{ {
} }
#region #region
#endregion #endregion
} }
} }

View File

@ -44,7 +44,7 @@ namespace ZR.Repository.System
/// <returns></returns> /// <returns></returns>
public long InsertDictData(SysDictData dict) public long InsertDictData(SysDictData dict)
{ {
var result = InsertReturnBigIdentity(dict); var result = Context.Insertable(dict).ExecuteReturnBigIdentity();
return result; return result;
} }