Update ProfileObjState class and DI registration
This commit is contained in:
parent
8f2261f0fa
commit
1159f3f575
@ -86,5 +86,4 @@ public class ProfileObjState
|
||||
|
||||
[ForeignKey("StateId")]
|
||||
public virtual State? State { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user