DmTenantKeyAttribute
Namespace: MJCZone.DapperMatic.DataAnnotations
Assembly: MJCZone.DapperMatic
Summary
Marks the property that says which tenant a row belongs to. Every DML method then reads and writes only the scope's tenant's rows (<c>ForTenant(id)</c>, or <c>DmDefaults.TenantId</c>), and sets it on inserted rows; with no tenant, the methods refuse the model, unless the scope says <c>AllTenants()</c>.
Inheritance
Base Class: Attribute
sealed public
Contents
Constructors (1) | Methods (6) | Properties (1)
Constructors
DmTenantKeyAttribute
csharp
DmTenantKeyAttribute()Methods
| Method | Summary |
|---|---|
| Equals | |
| GetHashCode | |
| Match | |
| IsDefaultAttribute | |
| GetType | |
| ToString |
Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()Match
csharp
Match()IsDefaultAttribute
csharp
IsDefaultAttribute()GetType
csharp
GetType()ToString
csharp
ToString()Properties
TypeId
Type: object