1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-22 02:51:33 +01:00

EF repo fixes

This commit is contained in:
Kyle Spearrin 2020-01-10 18:14:45 -05:00
parent fa1322599f
commit d653629e79
2 changed files with 1 additions and 1 deletions

View File

@ -38,6 +38,7 @@ namespace Bit.Core.Repositories.EntityFramework
var entity = Mapper.Map<TEntity>(obj);
dbContext.Add(entity);
await dbContext.SaveChangesAsync();
obj.Id = entity.Id;
}
}

View File

@ -18,7 +18,6 @@ using Microsoft.AspNetCore.Http;
using System;
using System.IO;
using SqlServerRepos = Bit.Core.Repositories.SqlServer;
using PostgreSqlRepos = Bit.Core.Repositories.PostgreSql;
using EntityFrameworkRepos = Bit.Core.Repositories.EntityFramework;
using NoopRepos = Bit.Core.Repositories.Noop;
using System.Threading.Tasks;