mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
调整结构
This commit is contained in:
@@ -64,7 +64,7 @@ namespace OpenAuth.Repository
|
||||
|
||||
public void Add<T>(T entity) where T : Domain.Entity
|
||||
{
|
||||
entity.Id = Guid.NewGuid();
|
||||
entity.Id = Guid.NewGuid().ToString();
|
||||
Context.Set<T>().Add(entity);
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace OpenAuth.Repository
|
||||
{
|
||||
foreach (var entity in entities)
|
||||
{
|
||||
entity.Id = Guid.NewGuid();
|
||||
entity.Id = Guid.NewGuid().ToString();
|
||||
}
|
||||
Context.Set<T>().AddRange(entities);
|
||||
}
|
||||
|
Reference in New Issue
Block a user