UpdateShift Method (Ent)
- Last UpdatedNov 06, 2025
- 2 minute read
The UpdateShift() method updates the shift defined by the input parameters for the entity that is identified by the ent object. The method includes a lastEditAt DateTime parameter that can be used for optimistic concurrency control.
Note: This method is no longer supported. Use the corresponding method in the Stateless API ShiftSchedule class.
'Declaration
<ObsoleteAttribute("Ent.UpdateShift method is no longer supported. Please call the corresponding updated method.")>
Public Sub UpdateShift( _
ByVal startDay As Long, _
ByVal shiftID As Long, _
ByVal shiftStart As Date, _
ByVal shiftEnd As Date, _
ByVal break1Start As Fact.Common.DBDateTime, _
ByVal break1End As Fact.Common.DBDateTime, _
ByVal break2Start As Fact.Common.DBDateTime, _
ByVal break2End As Fact.Common.DBDateTime, _
ByVal break3Start As Fact.Common.DBDateTime, _
ByVal break3End As Fact.Common.DBDateTime, _
ByVal lastEditAt As Nullable(Of Date) _
)
[Obsolete("Ent.UpdateShift method is no longer supported. Please call the corresponding updated method.")]
public void UpdateShift(
long startDay,
long shiftID,
DateTime shiftStart,
DateTime shiftEnd,
Fact.Common.DBDateTime break1Start,
Fact.Common.DBDateTime break1End,
Fact.Common.DBDateTime break2Start,
Fact.Common.DBDateTime break2End,
Fact.Common.DBDateTime break3Start,
Fact.Common.DBDateTime break3End,
Nullable<DateTime> lastEditAt
)
Parameters
- startDay
- Required. Holds the day of the week on which the shift starts (0=Sunday, 6=Saturday).
- shiftID
- Required. Holds the ID of the shift being defined.
- shiftStart
- Required. Holds the time that the shift will start (the date is ignored).
- shiftEnd
- Required. Holds the time that the shift will end (the date is ignored).
- break1Start
- Optional. Holds the time that the first break will start (the date is ignored).
- break1End
- Optional. Holds the time that the first break will end (the date is ignored).
- break2Start
- Optional. Holds the time that the second break will start (the date is ignored).
- break2End
- Optional. Holds the date/time that the second break will end (the date is ignored).
- break3Start
- Optional. Holds the time that the third break will start (the date is ignored).
- break3End
- Optional. Holds the time that the third break will end (the date is ignored).
- lastEditAt
- Required. Holds a DateTime value to avoid data contention. If it is specified, the passed value must match the lastEditAt value in the database for the update to succeed.