Files
DP44/Common/DTS.Common/Classes/Locking/LockRecord.cs

31 lines
994 B
C#
Raw Normal View History

2026-04-17 14:55:32 -04:00
using System;
using System.Data;
namespace DTS.Common.Classes.Locking
{
public class LockRecord
{
public string LockingUserName { get; }
public string LockingMachineName { get; }
public DateTime CreationTime { get; }
public DateTime LastUpdated { get; }
public string ItemKey { get; }
/// <summary>
/// this is the item category (as a value in the db - LockCategories)
/// </summary>
public int ItemCategory { get; }
public int ItemId { get; }
public LockRecord(string user, string machine, DateTime createTime, DateTime lastUpdate, string itemKey, int itemCategory, int itemId)
{
LockingUserName = user;
LockingMachineName = machine;
CreationTime = createTime;
LastUpdated = lastUpdate;
ItemKey = itemKey;
ItemCategory = itemCategory;
ItemId = itemId;
}
}
}