Skip to content

Q about table attributes #120

@NielsUll

Description

@NielsUll

Hi!

We have a number of applications which use a shared library to access a common database (Sql Server).
However, each application would like to define it's own filters - some using soft delete, some using tenancy, some only seeing most recent versions and so on.

I was hoping to do this by defining a BaseDbContext in the shared library and then have each application define a CustomDbContext extending BaseDbContext and declaring the required filters there.

This, however, doesn't work, as each filter gets mapped to a table attribute, so the framework will always think the database is out of sync with the model.

The only solution I can see is to define all the filters in the shared library. Unfortunately, this means that if we need to define a new filter for a single application, we must release new versions of all programs and do a database migration?

Are there other options?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions