Update ProfileObjState class and DI registration

This commit is contained in:
tekh 2025-08-01 02:13:44 +02:00
parent 8f2261f0fa
commit 1159f3f575
2 changed files with 2 additions and 2 deletions

View File

@ -86,5 +86,4 @@ public class ProfileObjState
[ForeignKey("StateId")]
public virtual State? State { get; set; }
}
}

View File

@ -23,6 +23,7 @@ public static class DependencyInjection
services.AddDbRepository<WFDBContext, State>(c => c.States).UseAutoMapper(typeof(StateUpdateDto));
services.AddDbRepository<WFDBContext, Button>(c => c.Buttons).UseAutoMapper();
services.AddDbRepository<WFDBContext, State>(c => c.States).UseAutoMapper(typeof(StateUpdateDto));
services.AddDbRepository<WFDBContext, ProfileObjState>(c => c.ProfileObjStates).UseAutoMapper();
return services;
}