Fix tests - temp this introduced another bug
This commit is contained in:
parent
558a1d73f5
commit
12235a62a2
3 changed files with 12 additions and 2 deletions
|
|
@ -47,6 +47,7 @@ public interface IAppUserReadingProfileRepository
|
|||
|
||||
void Add(AppUserReadingProfile readingProfile);
|
||||
void Add(SeriesReadingProfile readingProfile);
|
||||
void Attach(AppUserReadingProfile readingProfile);
|
||||
void Update(AppUserReadingProfile readingProfile);
|
||||
void Update(SeriesReadingProfile readingProfile);
|
||||
void Remove(AppUserReadingProfile readingProfile);
|
||||
|
|
@ -183,6 +184,11 @@ public class AppUserReadingProfileRepository(DataContext context, IMapper mapper
|
|||
context.SeriesReadingProfile.Add(readingProfile);
|
||||
}
|
||||
|
||||
public void Attach(AppUserReadingProfile readingProfile)
|
||||
{
|
||||
context.AppUserReadingProfile.Attach(readingProfile);
|
||||
}
|
||||
|
||||
public void Update(AppUserReadingProfile readingProfile)
|
||||
{
|
||||
context.AppUserReadingProfile.Update(readingProfile).State = EntityState.Modified;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue