init
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Interface.Tags;
|
||||
using System.Data;
|
||||
|
||||
namespace DTS.Common.Classes.Tags
|
||||
{
|
||||
public class TagAssignment : BasePropertyChanged, ITagAssignment
|
||||
{
|
||||
private int _objectId;
|
||||
public int ObjectID
|
||||
{
|
||||
get => _objectId;
|
||||
set => SetProperty(ref _objectId, value, "ObjectID");
|
||||
}
|
||||
|
||||
private int _tagId;
|
||||
public int TagID
|
||||
{
|
||||
get => _tagId;
|
||||
set => SetProperty(ref _tagId, value, "TagID");
|
||||
}
|
||||
|
||||
private TagTypes _tagType;
|
||||
public TagTypes ObjectType
|
||||
{
|
||||
get => _tagType;
|
||||
set => SetProperty(ref _tagType, value, "TagType");
|
||||
}
|
||||
public TagAssignment() { }
|
||||
public TagAssignment(IDataReader reader)
|
||||
{
|
||||
TagID = Utility.GetInt(reader, "TagID");
|
||||
ObjectID = Utility.GetInt(reader, "ObjectID");
|
||||
ObjectType = (TagTypes)Utility.GetShort(reader, "ObjectType");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user