From 0fc95107f2da4f93f7c135e7c29802bd7d785431 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 3 Jan 2018 15:11:49 +0200 Subject: Added Mid Tanks to DB. Started implementing Machine Designer. --- .../Visual_Studio/Tango.DAL.Local/DB/IDS_PACKS.cs | 4 +- .../Tango.DAL.Local/DB/LocalADO.Context.cs | 1 + .../Visual_Studio/Tango.DAL.Local/DB/LocalADO.edmx | 51 ++++++++++++++++++++-- .../Tango.DAL.Local/DB/LocalADO.edmx.diagram | 17 ++++---- .../Tango.DAL.Local/DB/MID_TANK_TYPES.cs | 25 +++++++++++ .../Tango.DAL.Local/Tango.DAL.Local.csproj | 3 ++ 6 files changed, 89 insertions(+), 12 deletions(-) create mode 100644 Software/Visual_Studio/Tango.DAL.Local/DB/MID_TANK_TYPES.cs (limited to 'Software/Visual_Studio/Tango.DAL.Local') diff --git a/Software/Visual_Studio/Tango.DAL.Local/DB/IDS_PACKS.cs b/Software/Visual_Studio/Tango.DAL.Local/DB/IDS_PACKS.cs index cb94d5f67..c4ffb0cf2 100644 --- a/Software/Visual_Studio/Tango.DAL.Local/DB/IDS_PACKS.cs +++ b/Software/Visual_Studio/Tango.DAL.Local/DB/IDS_PACKS.cs @@ -21,6 +21,8 @@ namespace Tango.DAL.Local.DB public string CONFIGURATION_GUID { get; set; } public string DISPENSER_GUID { get; set; } public string LIQUID_TYPE_GUID { get; set; } - public string CARTRIDGE_GUID { get; set; } + public string CARTRIDGE_TYPE_GUID { get; set; } + public string MID_TANK_TYPE_GUID { get; set; } + public string NAME { get; set; } } } diff --git a/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.Context.cs b/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.Context.cs index 5577ba99f..bcb01953b 100644 --- a/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.Context.cs +++ b/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.Context.cs @@ -58,6 +58,7 @@ namespace Tango.DAL.Local.DB public virtual DbSet MEDIA_CONDITIONS { get; set; } public virtual DbSet MEDIA_MATERIALS { get; set; } public virtual DbSet MEDIA_PURPOSES { get; set; } + public virtual DbSet MID_TANK_TYPES { get; set; } public virtual DbSet ORGANIZATIONS { get; set; } public virtual DbSet PERMISSIONS { get; set; } public virtual DbSet RMLS { get; set; } diff --git a/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.edmx b/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.edmx index bd3f0e69c..c90afa5ef 100644 --- a/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.edmx +++ b/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.edmx @@ -271,7 +271,9 @@ - + + + @@ -403,6 +405,18 @@ + + + + + + + + + + + + @@ -545,6 +559,7 @@ + @@ -592,6 +607,7 @@ + @@ -867,7 +883,9 @@ - + + + @@ -999,6 +1017,18 @@ + + + + + + + + + + + + @@ -1392,7 +1422,9 @@ - + + + @@ -1544,6 +1576,19 @@ + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.edmx.diagram b/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.edmx.diagram index f9884e5ba..ac5b442be 100644 --- a/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.edmx.diagram +++ b/Software/Visual_Studio/Tango.DAL.Local/DB/LocalADO.edmx.diagram @@ -38,14 +38,15 @@ - - - - - - - - + + + + + + + + + diff --git a/Software/Visual_Studio/Tango.DAL.Local/DB/MID_TANK_TYPES.cs b/Software/Visual_Studio/Tango.DAL.Local/DB/MID_TANK_TYPES.cs new file mode 100644 index 000000000..75eb1ba64 --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Local/DB/MID_TANK_TYPES.cs @@ -0,0 +1,25 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Local.DB +{ + using System; + using System.Collections.Generic; + + public partial class MID_TANK_TYPES + { + public long ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public bool DELETED { get; set; } + public long CODE { get; set; } + public string NAME { get; set; } + public double LITER_CAPACITY { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Local/Tango.DAL.Local.csproj b/Software/Visual_Studio/Tango.DAL.Local/Tango.DAL.Local.csproj index 16e1101a7..1770a031a 100644 --- a/Software/Visual_Studio/Tango.DAL.Local/Tango.DAL.Local.csproj +++ b/Software/Visual_Studio/Tango.DAL.Local/Tango.DAL.Local.csproj @@ -179,6 +179,9 @@ LocalADO.tt + + LocalADO.tt + LocalADO.tt -- cgit v1.3.1