SSWConsulting / SSW.Rules.GPT

SSW RulesGPT - a bot using Blazor WASM & an ASP.NET Core backend, powered by the amazing OpenAI API
https://rulesgpt.ssw.com.au
20 stars 6 forks source link

♻️ Extract EF config from RulesContext #151

Open jackreimers opened 11 months ago

jackreimers commented 11 months ago

Cc: @danielmackay

Hi

Pain

Currently all of the EF config is stored in the DbContext. Dan suggested it should be moved out into a seperate class to keep the DbContext tidy as part of his review on #150. The names of model classes should also have consistent suffixes, i.e. Model, Result or no suffix

Acceptance Criteria

The EF configuration code is extracted from RulesContext and the database access still works as expected.

Thanks!

### Tasks
- [ ] Extract EF config to a seperate class
- [ ] Make names of model classes consistent (i.e suffixes Model, Result)