Class TenantViewModel
Represents a tenant
Inheritance
System.Object
TenantViewModel
Namespace: Simplic.Framework.DBUI
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class TenantViewModel : UI.MVC.ViewModelBase
Constructors
| Improve this Doc View SourceTenantViewModel()
Create a new TenantViewModel instance
Declaration
public TenantViewModel()
TenantViewModel(Core.Tenant)
Create a TenantViewModel instance using a given Tenant
Declaration
public TenantViewModel(Core.Tenant tenant)
Parameters
Type | Name | Description |
---|---|---|
Core.Tenant | tenant |
Properties
| Improve this Doc View SourceConnectionId
ID of the tenant's connection (id from ESS_DC_BASE_DBConnection)
Declaration
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
public string ConnectionName { get; }
Property Value
Type | Description |
---|---|
System.String |
ExternId
ID of the tenant in the external system
Declaration
public int? ExternId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ExternName
Name of the tenant in the external system
Declaration
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
public Guid ExternTenantSystemId { get; set; }
Property Value
Type | Description |
---|---|
Guid |
Id
Unique tenant id
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid |
Model
Gets the model behind the viewmodel
Declaration
public Core.Tenant Model { get; }
Property Value
Type | Description |
---|---|
Core.Tenant |
Name
Name of the tenant for usage
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TenantSystemName
Name of the tenant sytem type
Declaration
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 Core.Tenant)
Converts a TenantViewModel to a Tenant code model
Declaration
public static explicit operator Core.Tenant(TenantViewModel model)
Parameters
Type | Name | Description |
---|---|---|
TenantViewModel | model | TenantViewModel |
Returns
Type | Description |
---|---|
Core.Tenant |
Implements
IEqualityComparer<>
IEquatable<>