Skip to content

Instantly share code, notes, and snippets.

@pofider
Created March 22, 2015 16:24
Show Gist options
  • Save pofider/0155e2eba672d8d6ad67 to your computer and use it in GitHub Desktop.
Save pofider/0155e2eba672d8d6ad67 to your computer and use it in GitHub Desktop.
Mapping multitenant filter to the entities
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