Class TenantViewModel
Represents a tenant
Inheritance
System.Object
TenantViewModel
Implements
System.Collections.Generic.IEqualityComparer<TenantViewModel>
System.IEquatable<TenantViewModel>
Namespace: Simplic.Framework.DBUI
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class TenantViewModel : UI.MVC.ViewModelBase, IEqualityComparer<TenantViewModel>, IEquatable<TenantViewModel>
Constructors
| Improve this Doc View SourceTenantViewModel()
Create a new TenantViewModel instance
Declaration
public TenantViewModel()
TenantViewModel(Tenant)
Create a TenantViewModel instance using a given Tenant
Declaration
public TenantViewModel(Tenant tenant)
Parameters
Type | Name | Description |
---|---|---|
Tenant | tenant |
Properties
| Improve this Doc View SourceConnectionId
ID of the tenant's connection (id from ESS_DC_BASE_DBConnection)
Declaration
[Display(GroupName = "Allgemein", Name = "Verbindung", Order = 10, Description = "Die vom Mandanten zu nutzende Verbindung zum externen System")]
public int? ConnectionId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ConnectionName
Name of the tenant' connection (mnd_name from ESS_DC_BASE_DBConnection)
Declaration
[Browsable(false)]
public string ConnectionName { get; }
Property Value
Type | Description |
---|---|
System.String |
ExternId
ID of the tenant in the external system
Declaration
[Display(GroupName = "Allgemein", Name = "Externe ID", Order = 30, Description = "Die ID des Mandanten im externen System")]
public int? ExternId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ExternName
Name of the tenant in the external system
Declaration
[RegularExpression("[^0-9a-zA-Z]+")]
[Display(GroupName = "Allgemein", Name = "Externer Name", Order = 20, Description = "Der Name des Mandanten im externen System")]
public string ExternName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ExternTenantSystemId
ID of the tenant's connection (id from ESS_DC_BASE_DBConnection)
Declaration
[Display(GroupName = "Allgemein", Name = "System", Order = 10, Description = "Externes oder internes Mandantensystem")]
public Guid ExternTenantSystemId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Id
Unique tenant id
Declaration
[Browsable(false)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Model
Gets the model behind the viewmodel
Declaration
public Tenant Model { get; }
Property Value
Type | Description |
---|---|
Tenant |
Name
Name of the tenant for usage
Declaration
[Required]
[RegularExpression("[^0-9a-zA-Z]+")]
[Display(GroupName = "Allgemein", Name = "Name", Order = 0, Description = "Der Name des Mandanten")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TenantSystemName
Name of the tenant sytem type
Declaration
[Browsable(false)]
public string TenantSystemName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(TenantViewModel)
Compare with other
Declaration
public bool Equals(TenantViewModel other)
Parameters
Type | Name | Description |
---|---|---|
TenantViewModel | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(TenantViewModel, TenantViewModel)
Compare two viewmodel
Declaration
public bool Equals(TenantViewModel x, TenantViewModel y)
Parameters
Type | Name | Description |
---|---|---|
TenantViewModel | x | |
TenantViewModel | y |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Compare methods / equals
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Get the hashcode of the current viewmodel
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
GetHashCode(TenantViewModel)
Get the hashcode of the obj
Declaration
public int GetHashCode(TenantViewModel obj)
Parameters
Type | Name | Description |
---|---|---|
TenantViewModel | obj |
Returns
Type | Description |
---|---|
System.Int32 |
Operators
| Improve this Doc View SourceExplicit(TenantViewModel to Tenant)
Converts a TenantViewModel to a Tenant code model
Declaration
public static explicit operator Tenant(TenantViewModel model)
Parameters
Type | Name | Description |
---|---|---|
TenantViewModel | model | TenantViewModel |
Returns
Type | Description |
---|---|
Tenant |
Implements
System.Collections.Generic.IEqualityComparer<T>
System.IEquatable<T>