Class AccountMaintenance
Inheritance
AccountMaintenance
Assembly: LemonEdge.API.Entities.Auto.dll
Syntax
[DataContract]
public class AccountMaintenance : BaseEntityWithPermissions, IAccountMaintenance, IBaseEntityWithPermissions, ISetCopier, IShareAcrossAccounts, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ILicense, ICloneableAsync<IAccountMaintenance>
Constructors
AccountMaintenance()
Declaration
public AccountMaintenance()
Properties
AdminUserID
Links to IUser. Holds the unique ID of the admin of this account. Can't be linked to, as this exists
in the account itself and is administered from the root account (1).
Declaration
public Guid? AdminUserID { get; set; }
Property Value
CanEditSQL
Indicates this is account is permitted to edit SQL manually in sql wrappers.
Declaration
public bool CanEditSQL { get; set; }
Property Value
Description
A user friendly description of this account
Declaration
[StringLength(2000)]
public string Description { get; set; }
Property Value
IsShared
Indicates this record is a shared record.
Only the root account can edit items that are shared records
Declaration
public bool IsShared { get; set; }
Property Value
LicenseEmail
An active email address for this license.
Declaration
[StringLength(500)]
public string LicenseEmail { get; set; }
Property Value
LicenseExpiry
The date this license is valid to. The license will be invalid after this date, and you'll need to renew.
Declaration
public DateTimeOffset? LicenseExpiry { get; set; }
Property Value
LicenseKey
This holds a valid license key for this account.
Declaration
[StringLength(2500)]
public string LicenseKey { get; set; }
Property Value
LicenseMaxCustomObjects
The maximum number of entities created through either the custom object auto-code designer, or directly in code
against our API. This is a count of the unique id of objects regardless of database/account, one custom object in
two databases still counts as one object.
Declaration
public int LicenseMaxCustomObjects { get; set; }
Property Value
LicenseMaxProductionDatabases
The maximum number of production databases. Excludes Dev, Test, UAT and other non-production databases.
Declaration
public int LicenseMaxProductionDatabases { get; set; }
Property Value
LicenseMaxUserCount
The maximum number of external users tied to this license. Internal users are covered by your normal production
license.
Declaration
public int? LicenseMaxUserCount { get; set; }
Property Value
LicenseName
The company name this license is for. A license is only valid for one company.
Declaration
[StringLength(500)]
public string LicenseName { get; set; }
Property Value
LicenseType
The type of license for this account.
Declaration
[EnumDataType(typeof(LicenseType))]
public LicenseType LicenseType { get; set; }
Property Value
LicenseType_Tooltip
Declaration
[NotMapped]
public string LicenseType_Tooltip { get; set; }
Property Value
Name
The user friendly name of this account.
Declaration
[Unique]
[Required]
[StringLength(500)]
public string Name { get; set; }
Property Value
Suspended
Indicates if this account is suspended. If it is then no-one can log into this account.
Declaration
[PropertyValidation("MyItem.Suspended == true", "MyItem.UniqueAccountID != 1", "You can not suspend the main root account.")]
public bool Suspended { get; set; }
Property Value
SystemHelpURL
Holds the help url for this system. Defaults to the base help url if empty.
Declaration
[StringLength(2500)]
public string SystemHelpURL { get; set; }
Property Value
UniqueAccountID
The unique account id for this account.
The main root account always has an id of 1.
This is the key for this entity
Declaration
[PropertyValidation("MyItem.AccountID != 1", "false", "Accounts can only be maintained from within the root account itself.")]
public long UniqueAccountID { get; set; }
Property Value
Methods
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(IAccountMaintenance)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(IAccountMaintenance source)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods