Created
March 22, 2015 16:24
-
-
Save pofider/0155e2eba672d8d6ad67 to your computer and use it in GitHub Desktop.
Mapping multitenant filter to the entities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MultitenantEntityBase<T> : EntityMapBase<T> | |
{ | |
protected MultitenantEntityBase() | |
{ | |
//... | |
ApplyFilter<MultitenantFilter>(); | |
Map(a => a.TenantId).Not.Nullable(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment