Show / Hide Table of Contents

Class TimeKeepingRecordData

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the time_keeping table.

Inheritance
object
TimeKeepingRecordData
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class TimeKeepingRecordData
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Constructors

TimeKeepingRecordData()

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the time_keeping table.

Declaration
public TimeKeepingRecordData()
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Fields

AccumulatedMinutes

The previously accumulated time in minutes for the given state

Declaration
public int AccumulatedMinutes
Field Value
Type Description
int
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

EntityId

The entity we are keeping time of (a sale, project - given by time_keeping_type)

Declaration
public int EntityId
Field Value
Type Description
int
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Registered

Registered when in UTC.

Declaration
public DateTime Registered
Field Value
Type Description
DateTime
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

RegisteredAssociateId

Registered by whom

Declaration
public int RegisteredAssociateId
Field Value
Type Description
int
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

StartTime

When the time keeping started for the last change, not yet finished/accumulated - The time since start_time must be added to the accumulation of time. When accumulation is done start_time will be set to the minimum value. start_time > min implies this is the current state (stage).

Declaration
public DateTime StartTime
Field Value
Type Description
DateTime
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

StateId

The id of the state we are keeping time of (a sale stage, or other thing - given by time_keeping_type)

Declaration
public int StateId
Field Value
Type Description
int
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

TimeKeepingId

Primary key

Declaration
public int TimeKeepingId
Field Value
Type Description
int
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

TimeKeepingType

What we are keeping time of

Declaration
public TimeKeepingType TimeKeepingType
Field Value
Type Description
TimeKeepingType
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Updated

Last updated when in UTC.

Declaration
public DateTime Updated
Field Value
Type Description
DateTime
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

UpdatedAssociateId

Last updated by whom

Declaration
public int UpdatedAssociateId
Field Value
Type Description
int
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

UpdatedCount

Number of updates made to this record

Declaration
public short UpdatedCount
Field Value
Type Description
short
Remarks

Please use this class instead of a full TimeKeepingRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding TimeKeepingTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
TimeKeepingRecordDataExtensions.ToInsertAsync(TimeKeepingRecordData, CancellationToken)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top