Show / Hide Table of Contents

Class Regulation

The payroll regulation client object

Inheritance
object
ModelBase
Regulation
RegulationSet
Implements
IRegulation
IModel
IAttributeObject
IKeyEquatable<IRegulation>
IEquatable<IRegulation>
INameObject
Inherited Members
ModelBase.ToString()
ModelBase.Id
ModelBase.IsExistingObject
ModelBase.IsNewObject
ModelBase.Status
ModelBase.Created
ModelBase.Updated
ModelBase.UpdateMode
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Model
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class Regulation : ModelBase, IRegulation, IModel, IAttributeObject, IKeyEquatable<IRegulation>, IEquatable<IRegulation>, INameObject

Constructors

Regulation()

Initializes a new instance

Declaration
public Regulation()

Regulation(Regulation)

Initializes a new instance from a copy

Declaration
public Regulation(Regulation copySource)
Parameters
Type Name Description
Regulation copySource

The copy source

Properties

Attributes

Declaration
[JsonPropertyOrder(110)]
public Dictionary<string, object> Attributes { get; set; }
Property Value
Type Description
Dictionary<string, object>

BaseRegulations

Required base regulations

Declaration
[JsonPropertyOrder(109)]
public List<string> BaseRegulations { get; set; }
Property Value
Type Description
List<string>

Description

The regulation description

Declaration
[JsonPropertyOrder(107)]
public string Description { get; set; }
Property Value
Type Description
string

DescriptionLocalizations

The localized payroll descriptions

Declaration
[JsonPropertyOrder(108)]
public Dictionary<string, string> DescriptionLocalizations { get; set; }
Property Value
Type Description
Dictionary<string, string>

Name

The regulation name

Declaration
[Required]
[StringLength(128)]
[JsonPropertyOrder(100)]
public string Name { get; set; }
Property Value
Type Description
string

NameLocalizations

The localized regulation names

Declaration
[JsonPropertyOrder(101)]
public Dictionary<string, string> NameLocalizations { get; set; }
Property Value
Type Description
Dictionary<string, string>

Namespace

The regulation namespace

Declaration
[StringLength(128)]
[JsonPropertyOrder(102)]
public string Namespace { get; set; }
Property Value
Type Description
string

Owner

The owner name

Declaration
[StringLength(128)]
[JsonPropertyOrder(106)]
public string Owner { get; set; }
Property Value
Type Description
string

SharedRegulation

Shared regulation (immutable)

Declaration
[JsonPropertyOrder(104)]
public bool SharedRegulation { get; set; }
Property Value
Type Description
bool

ValidFrom

The date the regulation to be in force, anytime if undefined

Declaration
[JsonPropertyOrder(105)]
public DateTime? ValidFrom { get; set; }
Property Value
Type Description
DateTime?

Version

The regulation version, unique per regulation name

Declaration
[JsonPropertyOrder(103)]
public int Version { get; set; }
Property Value
Type Description
int

Methods

EqualKey(IRegulation)

Test for the same item key

Declaration
public virtual bool EqualKey(IRegulation compare)
Parameters
Type Name Description
IRegulation compare
Returns
Type Description
bool

Equals(IRegulation)

Declaration
public virtual bool Equals(IRegulation compare)
Parameters
Type Name Description
IRegulation compare
Returns
Type Description
bool

GetUiString()

The object UI string

Declaration
public override string GetUiString()
Returns
Type Description
string
Overrides
ModelBase.GetUiString()

Implements

IRegulation
IModel
IAttributeObject
IKeyEquatable<T>
IEquatable<T>
INameObject

Extension Methods

ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX