aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.DAL.Remote/ObservableEntities/Entities/EmbeddedSoftwareVersion.cs
blob: c1e43c886919dbfac87d42581c606b98ecc46c87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Tango.DAL.Remote.DB;

namespace Tango.DAL.Remote.ObservableEntities
{
    public class EmbeddedSoftwareVersion : ObservableEntity<EMBEDDED_SOFTWARE_VERSIONS>
    {

        private ObservableCollection<Configuration> _configurations;
        /// <summary>
        /// Gets or sets the embeddedsoftwareversion configurations.
        /// </summary>
        [EntityFieldName("CONFIGURATIONS")]
        public ObservableCollection<Configuration> Configurations
        {
            get 
            {
                return _configurations; 
            }

            set 
            {
                _configurations = value; RaisePropertyChanged(nameof(Configurations)); 
            }

        }

        /// <summary>
        /// Initializes a new instance of the <see cref="EmbeddedSoftwareVersion" /> class.
        /// </summary>
        public EmbeddedSoftwareVersion() : base()
        {
            Init();
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="EmbeddedSoftwareVersion" /> class.
        /// </summary>
        /// <param name="entity">The entity.</param>
        public EmbeddedSoftwareVersion(EMBEDDED_SOFTWARE_VERSIONS entity) : base(entity)
        {
            Init();
            MapEntityToObservable(entity, this);
        }

        /// <summary>
        /// Initialize complex types.
        /// </summary>
        private void Init()
        {

            Configurations = new ObservableCollection<Configuration>();

        }
    }
}