Skip to content

Commit

Permalink
Update UserRepository.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Apr 9, 2024
1 parent 5ebef70 commit 031198b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions test/TableStorage.Abstracts.Tests/Services/UserRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,10 @@

namespace TableStorage.Abstracts.Tests.Services;


public class UserRepository : TableRepository<User>
public class UserRepository : TableRepository<User>, IUserRepository
{
public UserRepository(ILoggerFactory logFactory, TableServiceClient tableServiceClient)
: base(logFactory, tableServiceClient)
{
}

protected override void BeforeSave(User entity)
{
// use email as partition key
entity.PartitionKey = entity.Email;

base.BeforeSave(entity);
}

protected override string GetTableName() => "UserMembership";
}

0 comments on commit 031198b

Please sign in to comment.