Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicated words in EFCore.md #513

Merged
merged 3 commits into from
Jan 29, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix duplicate word in EFCore.md
  • Loading branch information
LionelVallet committed Jan 29, 2022
commit 3b38cb2cddd12f9bd918e3e89581c492953930ec
2 changes: 1 addition & 1 deletion docs/EFCore.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Finbuckle.MultiTenant provides two different ways to utilize this behavior in a
[described below](#adding-multitenant-functionality-to-an-existing-dbcontext), or
2. Derive from `MultiTenantDbContext` which handles the details for you.

The first option is more complex, but provides enhanced flexibility and allows existing database context classes (which may derive from a base class) to utilize per-tenant data isolation. The second option option is easier, but provides less flexibility. These approaches are both explained further below.
The first option is more complex, but provides enhanced flexibility and allows existing database context classes (which may derive from a base class) to utilize per-tenant data isolation. The second option is easier, but provides less flexibility. These approaches are both explained further below.

Regardless of how the db context is configured, the context will need to know which entity types should be treated as multitenant
(i.e. which entity types are to be isolated per tenant) When the db context is initialized, a shadow property named `TenantId` is added to the data model for designated entity types. This property is used internally to filter all requests and commands. If there already is a defined string property named "TenantId" then it will be used.
Expand Down