init
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user