From 3681ab681f02bbb7cda89de4044fd69bc9d61ab8 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Wed, 16 Feb 2022 19:15:31 +0200 Subject: PPC. Create Segments Groups. --- .../Tango.DAL.Remote/DB/RemoteADO.Context.cs | 1 + .../Tango.DAL.Remote/DB/RemoteADO.Designer.cs | 2 +- .../Tango.DAL.Remote/DB/RemoteADO.edmx | 72 +++++++- .../Tango.DAL.Remote/DB/RemoteADO.edmx.diagram | 182 +++++++++++---------- .../Visual_Studio/Tango.DAL.Remote/DB/SEGMENT.cs | 2 + .../Tango.DAL.Remote/DB/SEGMENTS_GROUPS.cs | 32 ++++ .../Tango.DAL.Remote/Tango.DAL.Remote.csproj | 5 +- 7 files changed, 203 insertions(+), 93 deletions(-) create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/SEGMENTS_GROUPS.cs (limited to 'Software/Visual_Studio/Tango.DAL.Remote') diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Context.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Context.cs index 0b51ddbda..181893358 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Context.cs +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Context.cs @@ -116,6 +116,7 @@ namespace Tango.DAL.Remote.DB public virtual DbSet ROLES_PERMISSIONS { get; set; } public virtual DbSet RUBBING_RESULTS { get; set; } public virtual DbSet SEGMENTS { get; set; } + public virtual DbSet SEGMENTS_GROUPS { get; set; } public virtual DbSet SITES { get; set; } public virtual DbSet SITES_CATALOGS { get; set; } public virtual DbSet SITES_RMLS { get; set; } diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Designer.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Designer.cs index d26e67908..b9a889afd 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Designer.cs +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.Designer.cs @@ -1,4 +1,4 @@ -// T4 code generation is enabled for model 'C:\DATA\Development\Tango\Software\Visual_Studio\Tango.DAL.Remote\DB\RemoteADO.edmx'. +// T4 code generation is enabled for model 'C:\TFS\Tango\Software\Visual_Studio\Tango.DAL.Remote\DB\RemoteADO.edmx'. // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model // is open in the designer. diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx index 8e4a49e8f..973d3f8b5 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx @@ -1287,6 +1287,17 @@ + + + + + + + + + + + @@ -2904,6 +2915,18 @@ + + + + + + + + + + + + @@ -3209,6 +3232,7 @@ + @@ -3624,6 +3648,10 @@ + + + + @@ -3849,6 +3877,7 @@ + @@ -4231,6 +4260,10 @@ + + + + @@ -4360,7 +4393,7 @@ - + @@ -6049,8 +6082,21 @@ + + + + + + + + + + + + + @@ -7515,6 +7561,18 @@ + + + + + + + + + + + + @@ -9105,6 +9163,7 @@ + @@ -9115,6 +9174,17 @@ + + + + + + + + + + + diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram index cc936cddc..af6feda16 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/RemoteADO.edmx.diagram @@ -5,97 +5,98 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -182,6 +183,7 @@ + diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/SEGMENT.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/SEGMENT.cs index 206092a13..e2fdfa732 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/DB/SEGMENT.cs +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/SEGMENT.cs @@ -27,9 +27,11 @@ namespace Tango.DAL.Remote.DB public string JOB_GUID { get; set; } public double LENGTH { get; set; } public int SEGMENT_INDEX { get; set; } + public string SEGMENTS_GROUP_GUID { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection BRUSH_STOPS { get; set; } public virtual JOB JOB { get; set; } + public virtual SEGMENTS_GROUPS SEGMENTS_GROUPS { get; set; } } } diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/SEGMENTS_GROUPS.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/SEGMENTS_GROUPS.cs new file mode 100644 index 000000000..9da1ce490 --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/SEGMENTS_GROUPS.cs @@ -0,0 +1,32 @@ +//------------------------------------------------------------------------------ +// +// 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.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class SEGMENTS_GROUPS + { + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + public SEGMENTS_GROUPS() + { + this.SEGMENTS = new HashSet(); + } + + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public int GROUP_INDEX { get; set; } + public int REPEATS { get; set; } + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection SEGMENTS { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.DAL.Remote/Tango.DAL.Remote.csproj b/Software/Visual_Studio/Tango.DAL.Remote/Tango.DAL.Remote.csproj index 8a7ccc017..1a15767d6 100644 --- a/Software/Visual_Studio/Tango.DAL.Remote/Tango.DAL.Remote.csproj +++ b/Software/Visual_Studio/Tango.DAL.Remote/Tango.DAL.Remote.csproj @@ -315,6 +315,9 @@ RemoteADO.tt + + RemoteADO.tt + RemoteADO.tt @@ -458,7 +461,7 @@ - + \ No newline at end of file -- cgit v1.3.1