From 031198b67bd20a05e84f412d017ca1cc087c17fc Mon Sep 17 00:00:00 2001 From: Paul Welter Date: Tue, 9 Apr 2024 15:28:58 -0500 Subject: [PATCH] Update UserRepository.cs --- .../Services/UserRepository.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/test/TableStorage.Abstracts.Tests/Services/UserRepository.cs b/test/TableStorage.Abstracts.Tests/Services/UserRepository.cs index dd18400..52344ab 100644 --- a/test/TableStorage.Abstracts.Tests/Services/UserRepository.cs +++ b/test/TableStorage.Abstracts.Tests/Services/UserRepository.cs @@ -6,21 +6,10 @@ namespace TableStorage.Abstracts.Tests.Services; - -public class UserRepository : TableRepository +public class UserRepository : TableRepository, 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"; }