aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/Entities/MachineStudioVersionBase.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-01-03 13:36:10 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-01-03 13:36:10 +0200
commit185865c043b5fdaffef5356e305e0cc553ccc126 (patch)
tree307084e5e9eb63e68356a1b5908edde068ca7a21 /Software/Visual_Studio/Tango.BL/Entities/MachineStudioVersionBase.cs
parent25f5e6ddef7ef2fa0a747305847eeb4ceee5a2c9 (diff)
downloadTango-185865c043b5fdaffef5356e305e0cc553ccc126.tar.gz
Tango-185865c043b5fdaffef5356e305e0cc553ccc126.zip
Added new BL entities with inheritance !!!!
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/MachineStudioVersionBase.cs')
-rw-r--r--Software/Visual_Studio/Tango.BL/Entities/MachineStudioVersionBase.cs288
1 files changed, 288 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/MachineStudioVersionBase.cs b/Software/Visual_Studio/Tango.BL/Entities/MachineStudioVersionBase.cs
new file mode 100644
index 000000000..0033b6697
--- /dev/null
+++ b/Software/Visual_Studio/Tango.BL/Entities/MachineStudioVersionBase.cs
@@ -0,0 +1,288 @@
+//------------------------------------------------------------------------------
+// <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;
+
+namespace Tango.BL.Entities
+{
+ [Table("MACHINE_STUDIO_VERSIONS")]
+ public abstract class MachineStudioVersionBase : ObservableEntity<MachineStudioVersion>
+ {
+
+ public event EventHandler<String> VersionChanged;
+
+ public event EventHandler<String> BlobNameChanged;
+
+ public event EventHandler<String> CommentsChanged;
+
+ public event EventHandler<Boolean> ForceUpdateChanged;
+
+ public event EventHandler<Boolean> StableChanged;
+
+ public event EventHandler<User> UserChanged;
+
+ protected String _version;
+
+ /// <summary>
+ /// Gets or sets the machinestudioversionbase version.
+ /// </summary>
+
+ [Column("VERSION")]
+
+ public String Version
+ {
+ get
+ {
+ return _version;
+ }
+
+ set
+ {
+ if (_version != value)
+ {
+ _version = value;
+
+ OnVersionChanged(value);
+
+ }
+ }
+ }
+
+ protected String _blobname;
+
+ /// <summary>
+ /// Gets or sets the machinestudioversionbase blob name.
+ /// </summary>
+
+ [Column("BLOB_NAME")]
+
+ public String BlobName
+ {
+ get
+ {
+ return _blobname;
+ }
+
+ set
+ {
+ if (_blobname != value)
+ {
+ _blobname = value;
+
+ OnBlobNameChanged(value);
+
+ }
+ }
+ }
+
+ protected String _comments;
+
+ /// <summary>
+ /// Gets or sets the machinestudioversionbase comments.
+ /// </summary>
+
+ [Column("COMMENTS")]
+
+ public String Comments
+ {
+ get
+ {
+ return _comments;
+ }
+
+ set
+ {
+ if (_comments != value)
+ {
+ _comments = value;
+
+ OnCommentsChanged(value);
+
+ }
+ }
+ }
+
+ protected String _userguid;
+
+ /// <summary>
+ /// Gets or sets the machinestudioversionbase user guid.
+ /// </summary>
+
+ [Column("USER_GUID")]
+ [ForeignKey("User")]
+
+ public String UserGuid
+ {
+ get
+ {
+ return _userguid;
+ }
+
+ set
+ {
+ if (_userguid != value)
+ {
+ _userguid = value;
+ }
+ }
+ }
+
+ protected Boolean _forceupdate;
+
+ /// <summary>
+ /// Gets or sets the machinestudioversionbase force update.
+ /// </summary>
+
+ [Column("FORCE_UPDATE")]
+
+ public Boolean ForceUpdate
+ {
+ get
+ {
+ return _forceupdate;
+ }
+
+ set
+ {
+ if (_forceupdate != value)
+ {
+ _forceupdate = value;
+
+ OnForceUpdateChanged(value);
+
+ }
+ }
+ }
+
+ protected Boolean _stable;
+
+ /// <summary>
+ /// Gets or sets the machinestudioversionbase stable.
+ /// </summary>
+
+ [Column("STABLE")]
+
+ public Boolean Stable
+ {
+ get
+ {
+ return _stable;
+ }
+
+ set
+ {
+ if (_stable != value)
+ {
+ _stable = value;
+
+ OnStableChanged(value);
+
+ }
+ }
+ }
+
+ protected User _user;
+
+ /// <summary>
+ /// Gets or sets the machinestudioversionbase user.
+ /// </summary>
+
+ [XmlIgnore]
+ [JsonIgnore]
+ public virtual User User
+ {
+ get
+ {
+ return _user;
+ }
+
+ set
+ {
+ if (_user != value)
+ {
+ _user = value;
+
+ OnUserChanged(value);
+
+ }
+ }
+ }
+
+ /// <summary>
+ /// Called when the Version has changed.
+ /// </summary>
+ protected virtual void OnVersionChanged(String version)
+ {
+ VersionChanged?.Invoke(this, version);
+ RaisePropertyChanged(nameof(Version));
+ }
+
+ /// <summary>
+ /// Called when the BlobName has changed.
+ /// </summary>
+ protected virtual void OnBlobNameChanged(String blobname)
+ {
+ BlobNameChanged?.Invoke(this, blobname);
+ RaisePropertyChanged(nameof(BlobName));
+ }
+
+ /// <summary>
+ /// Called when the Comments has changed.
+ /// </summary>
+ protected virtual void OnCommentsChanged(String comments)
+ {
+ CommentsChanged?.Invoke(this, comments);
+ RaisePropertyChanged(nameof(Comments));
+ }
+
+ /// <summary>
+ /// Called when the ForceUpdate has changed.
+ /// </summary>
+ protected virtual void OnForceUpdateChanged(Boolean forceupdate)
+ {
+ ForceUpdateChanged?.Invoke(this, forceupdate);
+ RaisePropertyChanged(nameof(ForceUpdate));
+ }
+
+ /// <summary>
+ /// Called when the Stable has changed.
+ /// </summary>
+ protected virtual void OnStableChanged(Boolean stable)
+ {
+ StableChanged?.Invoke(this, stable);
+ RaisePropertyChanged(nameof(Stable));
+ }
+
+ /// <summary>
+ /// Called when the User has changed.
+ /// </summary>
+ protected virtual void OnUserChanged(User user)
+ {
+ UserChanged?.Invoke(this, user);
+ RaisePropertyChanged(nameof(User));
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="MachineStudioVersionBase" /> class.
+ /// </summary>
+ public MachineStudioVersionBase() : base()
+ {
+ }
+ }
+}