aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/Entities/DataStoreItemBase.cs
diff options
context:
space:
mode:
authorMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
committerMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
commit00a491d93733d4625ad329b2ba8237f445364b3f (patch)
tree4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/Tango.BL/Entities/DataStoreItemBase.cs
parent124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff)
downloadTango-00a491d9.tar.gz
Tango-00a491d9.zip
merge
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/DataStoreItemBase.cs')
-rw-r--r--Software/Visual_Studio/Tango.BL/Entities/DataStoreItemBase.cs334
1 files changed, 0 insertions, 334 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/DataStoreItemBase.cs b/Software/Visual_Studio/Tango.BL/Entities/DataStoreItemBase.cs
deleted file mode 100644
index 6d393f6a2..000000000
--- a/Software/Visual_Studio/Tango.BL/Entities/DataStoreItemBase.cs
+++ /dev/null
@@ -1,334 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Tango Observables Generator
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated. Do not modify!
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-using System.Xml.Serialization;
-using Newtonsoft.Json;
-using System.Linq;
-using Tango.DAL.Remote.DB;
-using Tango.Core;
-using System.ComponentModel;
-using Tango.Core.CustomAttributes;
-
-namespace Tango.BL.Entities
-{
- [Table("DATA_STORE_ITEMS")]
- public abstract class DataStoreItemBase : ObservableEntity<DataStoreItem>
- {
-
- public event EventHandler<String> CollectionNameChanged;
-
- public event EventHandler<String> KeyChanged;
-
- public event EventHandler<Int32> DataTypeChanged;
-
- public event EventHandler<Byte[]> ValueChanged;
-
- public event EventHandler<Boolean> IsDeletedChanged;
-
- public event EventHandler<Boolean> IsSynchronizedChanged;
-
- public event EventHandler<Machine> MachineChanged;
-
- protected String _machineguid;
-
- /// <summary>
- /// Gets or sets the datastoreitembase machine guid.
- /// </summary>
-
- [Column("MACHINE_GUID")]
- [ForeignKey("Machine")]
-
- public String MachineGuid
- {
- get
- {
- return _machineguid;
- }
-
- set
- {
- if (_machineguid != value)
- {
- _machineguid = value;
-
- }
- }
- }
-
- protected String _collectionname;
-
- /// <summary>
- /// Gets or sets the datastoreitembase collection name.
- /// </summary>
-
- [Column("COLLECTION_NAME")]
-
- public String CollectionName
- {
- get
- {
- return _collectionname;
- }
-
- set
- {
- if (_collectionname != value)
- {
- _collectionname = value;
-
- OnCollectionNameChanged(value);
-
- }
- }
- }
-
- protected String _key;
-
- /// <summary>
- /// Gets or sets the datastoreitembase key.
- /// </summary>
-
- [Column("KEY")]
-
- public String Key
- {
- get
- {
- return _key;
- }
-
- set
- {
- if (_key != value)
- {
- _key = value;
-
- OnKeyChanged(value);
-
- }
- }
- }
-
- protected Int32 _datatype;
-
- /// <summary>
- /// Gets or sets the datastoreitembase data type.
- /// </summary>
-
- [Column("DATA_TYPE")]
-
- public Int32 DataType
- {
- get
- {
- return _datatype;
- }
-
- set
- {
- if (_datatype != value)
- {
- _datatype = value;
-
- OnDataTypeChanged(value);
-
- }
- }
- }
-
- protected Byte[] _value;
-
- /// <summary>
- /// Gets or sets the datastoreitembase value.
- /// </summary>
-
- [Column("VALUE")]
-
- public Byte[] Value
- {
- get
- {
- return _value;
- }
-
- set
- {
- if (_value != value)
- {
- _value = value;
-
- OnValueChanged(value);
-
- }
- }
- }
-
- protected Boolean _isdeleted;
-
- /// <summary>
- /// Gets or sets the datastoreitembase is deleted.
- /// </summary>
-
- [Column("IS_DELETED")]
-
- public Boolean IsDeleted
- {
- get
- {
- return _isdeleted;
- }
-
- set
- {
- if (_isdeleted != value)
- {
- _isdeleted = value;
-
- OnIsDeletedChanged(value);
-
- }
- }
- }
-
- protected Boolean _issynchronized;
-
- /// <summary>
- /// Gets or sets the datastoreitembase is synchronized.
- /// </summary>
-
- [Column("IS_SYNCHRONIZED")]
-
- public Boolean IsSynchronized
- {
- get
- {
- return _issynchronized;
- }
-
- set
- {
- if (_issynchronized != value)
- {
- _issynchronized = value;
-
- OnIsSynchronizedChanged(value);
-
- }
- }
- }
-
- protected Machine _machine;
-
- /// <summary>
- /// Gets or sets the datastoreitembase machine.
- /// </summary>
-
- [XmlIgnore]
- [JsonIgnore]
- public virtual Machine Machine
- {
- get
- {
- return _machine;
- }
-
- set
- {
- if (_machine != value)
- {
- _machine = value;
-
- if (Machine != null)
- {
- MachineGuid = Machine.Guid;
- }
-
- OnMachineChanged(value);
-
- }
- }
- }
-
- /// <summary>
- /// Called when the CollectionName has changed.
- /// </summary>
- protected virtual void OnCollectionNameChanged(String collectionname)
- {
- CollectionNameChanged?.Invoke(this, collectionname);
- RaisePropertyChanged(nameof(CollectionName));
- }
-
- /// <summary>
- /// Called when the Key has changed.
- /// </summary>
- protected virtual void OnKeyChanged(String key)
- {
- KeyChanged?.Invoke(this, key);
- RaisePropertyChanged(nameof(Key));
- }
-
- /// <summary>
- /// Called when the DataType has changed.
- /// </summary>
- protected virtual void OnDataTypeChanged(Int32 datatype)
- {
- DataTypeChanged?.Invoke(this, datatype);
- RaisePropertyChanged(nameof(DataType));
- }
-
- /// <summary>
- /// Called when the Value has changed.
- /// </summary>
- protected virtual void OnValueChanged(Byte[] value)
- {
- ValueChanged?.Invoke(this, value);
- RaisePropertyChanged(nameof(Value));
- }
-
- /// <summary>
- /// Called when the IsDeleted has changed.
- /// </summary>
- protected virtual void OnIsDeletedChanged(Boolean isdeleted)
- {
- IsDeletedChanged?.Invoke(this, isdeleted);
- RaisePropertyChanged(nameof(IsDeleted));
- }
-
- /// <summary>
- /// Called when the IsSynchronized has changed.
- /// </summary>
- protected virtual void OnIsSynchronizedChanged(Boolean issynchronized)
- {
- IsSynchronizedChanged?.Invoke(this, issynchronized);
- RaisePropertyChanged(nameof(IsSynchronized));
- }
-
- /// <summary>
- /// Called when the Machine has changed.
- /// </summary>
- protected virtual void OnMachineChanged(Machine machine)
- {
- MachineChanged?.Invoke(this, machine);
- RaisePropertyChanged(nameof(Machine));
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="DataStoreItemBase" /> class.
- /// </summary>
- public DataStoreItemBase() : base()
- {
- }
- }
-}