Skip to content

♻️ Extract EF config from RulesContext #151

@jackreimers

Description

@jackreimers

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: RefactorA code quality improvement e.g. Tech debt

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions