//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace LightSwitchApplication.Implementation
{
    
    #region Teilnehmer
    [global::System.Runtime.Serialization.DataContract(Namespace = "http://schemas.datacontract.org/2004/07/ApplicationData.Implementation")]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "10.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    public sealed class Teilnehmer :
        global::System.ServiceModel.DomainServices.Client.Entity,
        global::LightSwitchApplication.Teilnehmer.DetailsClass.IImplementation
    {
        public override object GetIdentity()
        {
            if (this.__host != null && this.__host.IsNewlyAdded)
            {
                return null;
            }
    
            return this._Id;
        }
        [global::System.ComponentModel.DataAnnotations.Key()]
        [global::System.ComponentModel.DataAnnotations.Editable(false, AllowInitialValue = true)]
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public int Id
        {
            get
            {
                return this._Id;
            }
            set
            {
                if (this._Id != value)
                {
                    this.ValidateProperty("Id", value);
                    this._Id = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }
        private int _Id;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Vorname
        {
            get
            {
                return this._Vorname;
            }
            set
            {
                if (this._Vorname != value)
                {
                    this.RaiseDataMemberChanging("Vorname");
                    this.ValidateProperty("Vorname", value);
                    this._Vorname = value;
                    this.RaiseDataMemberChanged("Vorname");
                }
            }
        }
        private string _Vorname;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Name
        {
            get
            {
                return this._Name;
            }
            set
            {
                if (this._Name != value)
                {
                    this.RaiseDataMemberChanging("Name");
                    this.ValidateProperty("Name", value);
                    this._Name = value;
                    this.RaiseDataMemberChanged("Name");
                }
            }
        }
        private string _Name;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Firma
        {
            get
            {
                return this._Firma;
            }
            set
            {
                if (this._Firma != value)
                {
                    this.RaiseDataMemberChanging("Firma");
                    this.ValidateProperty("Firma", value);
                    this._Firma = value;
                    this.RaiseDataMemberChanged("Firma");
                }
            }
        }
        private string _Firma;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string EMail
        {
            get
            {
                return this._EMail;
            }
            set
            {
                if (this._EMail != value)
                {
                    this.RaiseDataMemberChanging("EMail");
                    this.ValidateProperty("EMail", value);
                    this._EMail = value;
                    this.RaiseDataMemberChanged("EMail");
                }
            }
        }
        private string _EMail;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Telefon
        {
            get
            {
                return this._Telefon;
            }
            set
            {
                if (this._Telefon != value)
                {
                    this.RaiseDataMemberChanging("Telefon");
                    this.ValidateProperty("Telefon", value);
                    this._Telefon = value;
                    this.RaiseDataMemberChanged("Telefon");
                }
            }
        }
        private string _Telefon;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Strasse
        {
            get
            {
                return this._Strasse;
            }
            set
            {
                if (this._Strasse != value)
                {
                    this.RaiseDataMemberChanging("Strasse");
                    this.ValidateProperty("Strasse", value);
                    this._Strasse = value;
                    this.RaiseDataMemberChanged("Strasse");
                }
            }
        }
        private string _Strasse;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string PLZ
        {
            get
            {
                return this._PLZ;
            }
            set
            {
                if (this._PLZ != value)
                {
                    this.RaiseDataMemberChanging("PLZ");
                    this.ValidateProperty("PLZ", value);
                    this._PLZ = value;
                    this.RaiseDataMemberChanged("PLZ");
                }
            }
        }
        private string _PLZ;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Ort
        {
            get
            {
                return this._Ort;
            }
            set
            {
                if (this._Ort != value)
                {
                    this.RaiseDataMemberChanging("Ort");
                    this.ValidateProperty("Ort", value);
                    this._Ort = value;
                    this.RaiseDataMemberChanged("Ort");
                }
            }
        }
        private string _Ort;
        
        [global::System.ComponentModel.DataAnnotations.Association("TeilnehmerSchulungen_Teilnehmer", "Id", "TeilnehmerSchulungen_Teilnehmer")]
        [global::System.Xml.Serialization.XmlIgnore()]
        public global::System.ServiceModel.DomainServices.Client.EntityCollection<TeilnehmerSchulungen> TeilnehmerSchulungen
        {
            get
            {
                if (this._TeilnehmerSchulungen == null)
                {
                    this._TeilnehmerSchulungen = new global::System.ServiceModel.DomainServices.Client.EntityCollection<global::LightSwitchApplication.Implementation.TeilnehmerSchulungen>(this, "TeilnehmerSchulungen", this.FilterTeilnehmerSchulungen, this.AttachTeilnehmerSchulungen, this.DetachTeilnehmerSchulungen);
                }
                return this._TeilnehmerSchulungen;
            }
        }
        private global::System.ServiceModel.DomainServices.Client.EntityCollection<global::LightSwitchApplication.Implementation.TeilnehmerSchulungen> _TeilnehmerSchulungen;
        private void AttachTeilnehmerSchulungen(global::LightSwitchApplication.Implementation.TeilnehmerSchulungen entity)
        {
            entity.Teilnehmer = this;
        }
        private void DetachTeilnehmerSchulungen(global::LightSwitchApplication.Implementation.TeilnehmerSchulungen entity)
        {
            entity.Teilnehmer = null;
        }
        private bool FilterTeilnehmerSchulungen(global::LightSwitchApplication.Implementation.TeilnehmerSchulungen entity)
        {
            return global::System.Object.Equals(entity.TeilnehmerSchulungen_Teilnehmer, this.Id);
        }
        global::System.Collections.IEnumerable global::LightSwitchApplication.Teilnehmer.DetailsClass.IImplementation.TeilnehmerSchulungen
        {
            get
            {
                return this.TeilnehmerSchulungen;
            }
        }
        
        #region IEntityImplementation Members
        private global::Microsoft.LightSwitch.Internal.IEntityImplementationHost __host;
        
        global::Microsoft.LightSwitch.Internal.IEntityImplementationHost global::Microsoft.LightSwitch.Internal.IEntityImplementation.Host
        {
            get
            {
                return this.__host;
            }
        }
        
        void global::Microsoft.LightSwitch.Internal.IEntityImplementation.Initialize(global::Microsoft.LightSwitch.Internal.IEntityImplementationHost host)
        {
            this.__host = host;
        }
        
        protected override void OnPropertyChanged(global::System.ComponentModel.PropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);
            if (this.__host != null)
            {
                this.__host.RaisePropertyChanged(e.PropertyName);
            }
        }
        #endregion
    }
    #endregion
    
    #region Schulung
    [global::System.Runtime.Serialization.DataContract(Namespace = "http://schemas.datacontract.org/2004/07/ApplicationData.Implementation")]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "10.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    public sealed class Schulung :
        global::System.ServiceModel.DomainServices.Client.Entity,
        global::LightSwitchApplication.Schulung.DetailsClass.IImplementation
    {
        public override object GetIdentity()
        {
            if (this.__host != null && this.__host.IsNewlyAdded)
            {
                return null;
            }
    
            return this._Id;
        }
        [global::System.ComponentModel.DataAnnotations.Key()]
        [global::System.ComponentModel.DataAnnotations.Editable(false, AllowInitialValue = true)]
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public int Id
        {
            get
            {
                return this._Id;
            }
            set
            {
                if (this._Id != value)
                {
                    this.ValidateProperty("Id", value);
                    this._Id = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }
        private int _Id;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Schulungsthema
        {
            get
            {
                return this._Schulungsthema;
            }
            set
            {
                if (this._Schulungsthema != value)
                {
                    this.RaiseDataMemberChanging("Schulungsthema");
                    this.ValidateProperty("Schulungsthema", value);
                    this._Schulungsthema = value;
                    this.RaiseDataMemberChanged("Schulungsthema");
                }
            }
        }
        private string _Schulungsthema;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public global::System.DateTime Beginn
        {
            get
            {
                return this._Beginn;
            }
            set
            {
                if (this._Beginn != value)
                {
                    this.RaiseDataMemberChanging("Beginn");
                    this.ValidateProperty("Beginn", value);
                    this._Beginn = value;
                    this.RaiseDataMemberChanged("Beginn");
                }
            }
        }
        private global::System.DateTime _Beginn;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public global::System.DateTime Ende
        {
            get
            {
                return this._Ende;
            }
            set
            {
                if (this._Ende != value)
                {
                    this.RaiseDataMemberChanging("Ende");
                    this.ValidateProperty("Ende", value);
                    this._Ende = value;
                    this.RaiseDataMemberChanged("Ende");
                }
            }
        }
        private global::System.DateTime _Ende;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public decimal Preis
        {
            get
            {
                return this._Preis;
            }
            set
            {
                if (this._Preis != value)
                {
                    this.RaiseDataMemberChanging("Preis");
                    this.ValidateProperty("Preis", value);
                    this._Preis = value;
                    this.RaiseDataMemberChanged("Preis");
                }
            }
        }
        private decimal _Preis;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Beschreibung
        {
            get
            {
                return this._Beschreibung;
            }
            set
            {
                if (this._Beschreibung != value)
                {
                    this.RaiseDataMemberChanging("Beschreibung");
                    this.ValidateProperty("Beschreibung", value);
                    this._Beschreibung = value;
                    this.RaiseDataMemberChanged("Beschreibung");
                }
            }
        }
        private string _Beschreibung;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public int Referent_Schulung
        {
            get
            {
                return this._Referent_Schulung;
            }
            set
            {
                if (this._Referent_Schulung != value)
                {
                    this.RaiseDataMemberChanging("Referent_Schulung");
                    this.ValidateProperty("Referent_Schulung", value);
                    this._Referent_Schulung = value;
                    this.RaiseDataMemberChanged("Referent_Schulung");
                }
            }
        }
        private int _Referent_Schulung;
        
        [global::System.ComponentModel.DataAnnotations.Association("Referent_Schulung", "Referent_Schulung", "Id", IsForeignKey = true)]
        [global::System.Xml.Serialization.XmlIgnore()]
        public global::LightSwitchApplication.Implementation.Referent Referent
        {
            get
            {
                if (this._Referent == null)
                {
                    this._Referent = new global::System.ServiceModel.DomainServices.Client.EntityRef<global::LightSwitchApplication.Implementation.Referent>(this, "Referent", this.FilterReferent);
                }
                return this._Referent.Entity;
            }
            set
            {
                Referent previous = this.Referent;
                if (previous != value)
                {
                    this.ValidateProperty("Referent", value);
                    if (previous != null)
                    {
                        this._Referent.Entity = null;
                        previous.Schulungen.Remove(this);
                    }
                    if (value != null)
                    {
                        this.Referent_Schulung = value.Id;
                    }
                    else
                    {
                        this.Referent_Schulung = default(int);
                    }
                    this._Referent.Entity = value;
                    if (value != null)
                    {
                        value.Schulungen.Add(this);
                    }
                    this.RaisePropertyChanged("Referent");
                }
            }
        }
        private global::System.ServiceModel.DomainServices.Client.EntityRef<global::LightSwitchApplication.Implementation.Referent> _Referent;
        private bool FilterReferent(global::LightSwitchApplication.Implementation.Referent entity)
        {
            return global::System.Object.Equals(entity.Id, this.Referent_Schulung);
        }
        global::Microsoft.LightSwitch.Internal.IEntityImplementation global::LightSwitchApplication.Schulung.DetailsClass.IImplementation.Referent
        {
            get
            {
                return this.Referent;
            }
            set
            {
                this.Referent = (global::LightSwitchApplication.Implementation.Referent)value;
            }
        }
        
        [global::System.ComponentModel.DataAnnotations.Association("TeilnehmerSchulungen_Schulung", "Id", "TeilnehmerSchulungen_Schulung")]
        [global::System.Xml.Serialization.XmlIgnore()]
        public global::System.ServiceModel.DomainServices.Client.EntityCollection<TeilnehmerSchulungen> TeilnehmerSchulungen
        {
            get
            {
                if (this._TeilnehmerSchulungen == null)
                {
                    this._TeilnehmerSchulungen = new global::System.ServiceModel.DomainServices.Client.EntityCollection<global::LightSwitchApplication.Implementation.TeilnehmerSchulungen>(this, "TeilnehmerSchulungen", this.FilterTeilnehmerSchulungen, this.AttachTeilnehmerSchulungen, this.DetachTeilnehmerSchulungen);
                }
                return this._TeilnehmerSchulungen;
            }
        }
        private global::System.ServiceModel.DomainServices.Client.EntityCollection<global::LightSwitchApplication.Implementation.TeilnehmerSchulungen> _TeilnehmerSchulungen;
        private void AttachTeilnehmerSchulungen(global::LightSwitchApplication.Implementation.TeilnehmerSchulungen entity)
        {
            entity.Schulung = this;
        }
        private void DetachTeilnehmerSchulungen(global::LightSwitchApplication.Implementation.TeilnehmerSchulungen entity)
        {
            entity.Schulung = null;
        }
        private bool FilterTeilnehmerSchulungen(global::LightSwitchApplication.Implementation.TeilnehmerSchulungen entity)
        {
            return global::System.Object.Equals(entity.TeilnehmerSchulungen_Schulung, this.Id);
        }
        global::System.Collections.IEnumerable global::LightSwitchApplication.Schulung.DetailsClass.IImplementation.TeilnehmerSchulungen
        {
            get
            {
                return this.TeilnehmerSchulungen;
            }
        }
        
        #region IEntityImplementation Members
        private global::Microsoft.LightSwitch.Internal.IEntityImplementationHost __host;
        
        global::Microsoft.LightSwitch.Internal.IEntityImplementationHost global::Microsoft.LightSwitch.Internal.IEntityImplementation.Host
        {
            get
            {
                return this.__host;
            }
        }
        
        void global::Microsoft.LightSwitch.Internal.IEntityImplementation.Initialize(global::Microsoft.LightSwitch.Internal.IEntityImplementationHost host)
        {
            this.__host = host;
        }
        
        protected override void OnPropertyChanged(global::System.ComponentModel.PropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);
            if (this.__host != null)
            {
                this.__host.RaisePropertyChanged(e.PropertyName);
            }
        }
        #endregion
    }
    #endregion
    
    #region Referent
    [global::System.Runtime.Serialization.DataContract(Namespace = "http://schemas.datacontract.org/2004/07/ApplicationData.Implementation")]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "10.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    public sealed class Referent :
        global::System.ServiceModel.DomainServices.Client.Entity,
        global::LightSwitchApplication.Referent.DetailsClass.IImplementation
    {
        public override object GetIdentity()
        {
            if (this.__host != null && this.__host.IsNewlyAdded)
            {
                return null;
            }
    
            return this._Id;
        }
        [global::System.ComponentModel.DataAnnotations.Key()]
        [global::System.ComponentModel.DataAnnotations.Editable(false, AllowInitialValue = true)]
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public int Id
        {
            get
            {
                return this._Id;
            }
            set
            {
                if (this._Id != value)
                {
                    this.ValidateProperty("Id", value);
                    this._Id = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }
        private int _Id;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Name
        {
            get
            {
                return this._Name;
            }
            set
            {
                if (this._Name != value)
                {
                    this.RaiseDataMemberChanging("Name");
                    this.ValidateProperty("Name", value);
                    this._Name = value;
                    this.RaiseDataMemberChanged("Name");
                }
            }
        }
        private string _Name;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Vorname
        {
            get
            {
                return this._Vorname;
            }
            set
            {
                if (this._Vorname != value)
                {
                    this.RaiseDataMemberChanging("Vorname");
                    this.ValidateProperty("Vorname", value);
                    this._Vorname = value;
                    this.RaiseDataMemberChanged("Vorname");
                }
            }
        }
        private string _Vorname;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string EMail
        {
            get
            {
                return this._EMail;
            }
            set
            {
                if (this._EMail != value)
                {
                    this.RaiseDataMemberChanging("EMail");
                    this.ValidateProperty("EMail", value);
                    this._EMail = value;
                    this.RaiseDataMemberChanged("EMail");
                }
            }
        }
        private string _EMail;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public byte[] Foto
        {
            get
            {
                return this._Foto;
            }
            set
            {
                if (this._Foto != value)
                {
                    this.RaiseDataMemberChanging("Foto");
                    this.ValidateProperty("Foto", value);
                    this._Foto = value;
                    this.RaiseDataMemberChanged("Foto");
                }
            }
        }
        private byte[] _Foto;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public global::System.Nullable<global::System.DateTime> Geburtstag
        {
            get
            {
                return this._Geburtstag;
            }
            set
            {
                if (this._Geburtstag != value)
                {
                    this.RaiseDataMemberChanging("Geburtstag");
                    this.ValidateProperty("Geburtstag", value);
                    this._Geburtstag = value;
                    this.RaiseDataMemberChanged("Geburtstag");
                }
            }
        }
        private global::System.Nullable<global::System.DateTime> _Geburtstag;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Telefon
        {
            get
            {
                return this._Telefon;
            }
            set
            {
                if (this._Telefon != value)
                {
                    this.RaiseDataMemberChanging("Telefon");
                    this.ValidateProperty("Telefon", value);
                    this._Telefon = value;
                    this.RaiseDataMemberChanged("Telefon");
                }
            }
        }
        private string _Telefon;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public string Referentenart
        {
            get
            {
                return this._Referentenart;
            }
            set
            {
                if (this._Referentenart != value)
                {
                    this.RaiseDataMemberChanging("Referentenart");
                    this.ValidateProperty("Referentenart", value);
                    this._Referentenart = value;
                    this.RaiseDataMemberChanged("Referentenart");
                }
            }
        }
        private string _Referentenart;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public bool IstMVP
        {
            get
            {
                return this._IstMVP;
            }
            set
            {
                if (this._IstMVP != value)
                {
                    this.RaiseDataMemberChanging("IstMVP");
                    this.ValidateProperty("IstMVP", value);
                    this._IstMVP = value;
                    this.RaiseDataMemberChanged("IstMVP");
                }
            }
        }
        private bool _IstMVP;
        
        [global::System.ComponentModel.DataAnnotations.Association("Referent_Schulung", "Id", "Referent_Schulung")]
        [global::System.Xml.Serialization.XmlIgnore()]
        public global::System.ServiceModel.DomainServices.Client.EntityCollection<Schulung> Schulungen
        {
            get
            {
                if (this._Schulungen == null)
                {
                    this._Schulungen = new global::System.ServiceModel.DomainServices.Client.EntityCollection<global::LightSwitchApplication.Implementation.Schulung>(this, "Schulungen", this.FilterSchulungen, this.AttachSchulungen, this.DetachSchulungen);
                }
                return this._Schulungen;
            }
        }
        private global::System.ServiceModel.DomainServices.Client.EntityCollection<global::LightSwitchApplication.Implementation.Schulung> _Schulungen;
        private void AttachSchulungen(global::LightSwitchApplication.Implementation.Schulung entity)
        {
            entity.Referent = this;
        }
        private void DetachSchulungen(global::LightSwitchApplication.Implementation.Schulung entity)
        {
            entity.Referent = null;
        }
        private bool FilterSchulungen(global::LightSwitchApplication.Implementation.Schulung entity)
        {
            return global::System.Object.Equals(entity.Referent_Schulung, this.Id);
        }
        global::System.Collections.IEnumerable global::LightSwitchApplication.Referent.DetailsClass.IImplementation.Schulungen
        {
            get
            {
                return this.Schulungen;
            }
        }
        
        #region IEntityImplementation Members
        private global::Microsoft.LightSwitch.Internal.IEntityImplementationHost __host;
        
        global::Microsoft.LightSwitch.Internal.IEntityImplementationHost global::Microsoft.LightSwitch.Internal.IEntityImplementation.Host
        {
            get
            {
                return this.__host;
            }
        }
        
        void global::Microsoft.LightSwitch.Internal.IEntityImplementation.Initialize(global::Microsoft.LightSwitch.Internal.IEntityImplementationHost host)
        {
            this.__host = host;
        }
        
        protected override void OnPropertyChanged(global::System.ComponentModel.PropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);
            if (this.__host != null)
            {
                this.__host.RaisePropertyChanged(e.PropertyName);
            }
        }
        #endregion
    }
    #endregion
    
    #region TeilnehmerSchulungen
    [global::System.Runtime.Serialization.DataContract(Namespace = "http://schemas.datacontract.org/2004/07/ApplicationData.Implementation")]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "10.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    public sealed class TeilnehmerSchulungen :
        global::System.ServiceModel.DomainServices.Client.Entity,
        global::LightSwitchApplication.TeilnehmerSchulungen.DetailsClass.IImplementation
    {
        public override object GetIdentity()
        {
            if (this.__host != null && this.__host.IsNewlyAdded)
            {
                return null;
            }
    
            return this._Id;
        }
        [global::System.ComponentModel.DataAnnotations.Key()]
        [global::System.ComponentModel.DataAnnotations.Editable(false, AllowInitialValue = true)]
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public int Id
        {
            get
            {
                return this._Id;
            }
            set
            {
                if (this._Id != value)
                {
                    this.ValidateProperty("Id", value);
                    this._Id = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }
        private int _Id;
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public int TeilnehmerSchulungen_Schulung
        {
            get
            {
                return this._TeilnehmerSchulungen_Schulung;
            }
            set
            {
                if (this._TeilnehmerSchulungen_Schulung != value)
                {
                    this.RaiseDataMemberChanging("TeilnehmerSchulungen_Schulung");
                    this.ValidateProperty("TeilnehmerSchulungen_Schulung", value);
                    this._TeilnehmerSchulungen_Schulung = value;
                    this.RaiseDataMemberChanged("TeilnehmerSchulungen_Schulung");
                }
            }
        }
        private int _TeilnehmerSchulungen_Schulung;
        
        [global::System.ComponentModel.DataAnnotations.Association("TeilnehmerSchulungen_Schulung", "TeilnehmerSchulungen_Schulung", "Id", IsForeignKey = true)]
        [global::System.Xml.Serialization.XmlIgnore()]
        public global::LightSwitchApplication.Implementation.Schulung Schulung
        {
            get
            {
                if (this._Schulung == null)
                {
                    this._Schulung = new global::System.ServiceModel.DomainServices.Client.EntityRef<global::LightSwitchApplication.Implementation.Schulung>(this, "Schulung", this.FilterSchulung);
                }
                return this._Schulung.Entity;
            }
            set
            {
                Schulung previous = this.Schulung;
                if (previous != value)
                {
                    this.ValidateProperty("Schulung", value);
                    if (previous != null)
                    {
                        this._Schulung.Entity = null;
                        previous.TeilnehmerSchulungen.Remove(this);
                    }
                    if (value != null)
                    {
                        this.TeilnehmerSchulungen_Schulung = value.Id;
                    }
                    else
                    {
                        this.TeilnehmerSchulungen_Schulung = default(int);
                    }
                    this._Schulung.Entity = value;
                    if (value != null)
                    {
                        value.TeilnehmerSchulungen.Add(this);
                    }
                    this.RaisePropertyChanged("Schulung");
                }
            }
        }
        private global::System.ServiceModel.DomainServices.Client.EntityRef<global::LightSwitchApplication.Implementation.Schulung> _Schulung;
        private bool FilterSchulung(global::LightSwitchApplication.Implementation.Schulung entity)
        {
            return global::System.Object.Equals(entity.Id, this.TeilnehmerSchulungen_Schulung);
        }
        global::Microsoft.LightSwitch.Internal.IEntityImplementation global::LightSwitchApplication.TeilnehmerSchulungen.DetailsClass.IImplementation.Schulung
        {
            get
            {
                return this.Schulung;
            }
            set
            {
                this.Schulung = (global::LightSwitchApplication.Implementation.Schulung)value;
            }
        }
        
        [global::System.Runtime.Serialization.DataMember()]
        [global::System.ComponentModel.DataAnnotations.RoundtripOriginal()]
        public int TeilnehmerSchulungen_Teilnehmer
        {
            get
            {
                return this._TeilnehmerSchulungen_Teilnehmer;
            }
            set
            {
                if (this._TeilnehmerSchulungen_Teilnehmer != value)
                {
                    this.RaiseDataMemberChanging("TeilnehmerSchulungen_Teilnehmer");
                    this.ValidateProperty("TeilnehmerSchulungen_Teilnehmer", value);
                    this._TeilnehmerSchulungen_Teilnehmer = value;
                    this.RaiseDataMemberChanged("TeilnehmerSchulungen_Teilnehmer");
                }
            }
        }
        private int _TeilnehmerSchulungen_Teilnehmer;
        
        [global::System.ComponentModel.DataAnnotations.Association("TeilnehmerSchulungen_Teilnehmer", "TeilnehmerSchulungen_Teilnehmer", "Id", IsForeignKey = true)]
        [global::System.Xml.Serialization.XmlIgnore()]
        public global::LightSwitchApplication.Implementation.Teilnehmer Teilnehmer
        {
            get
            {
                if (this._Teilnehmer == null)
                {
                    this._Teilnehmer = new global::System.ServiceModel.DomainServices.Client.EntityRef<global::LightSwitchApplication.Implementation.Teilnehmer>(this, "Teilnehmer", this.FilterTeilnehmer);
                }
                return this._Teilnehmer.Entity;
            }
            set
            {
                Teilnehmer previous = this.Teilnehmer;
                if (previous != value)
                {
                    this.ValidateProperty("Teilnehmer", value);
                    if (previous != null)
                    {
                        this._Teilnehmer.Entity = null;
                        previous.TeilnehmerSchulungen.Remove(this);
                    }
                    if (value != null)
                    {
                        this.TeilnehmerSchulungen_Teilnehmer = value.Id;
                    }
                    else
                    {
                        this.TeilnehmerSchulungen_Teilnehmer = default(int);
                    }
                    this._Teilnehmer.Entity = value;
                    if (value != null)
                    {
                        value.TeilnehmerSchulungen.Add(this);
                    }
                    this.RaisePropertyChanged("Teilnehmer");
                }
            }
        }
        private global::System.ServiceModel.DomainServices.Client.EntityRef<global::LightSwitchApplication.Implementation.Teilnehmer> _Teilnehmer;
        private bool FilterTeilnehmer(global::LightSwitchApplication.Implementation.Teilnehmer entity)
        {
            return global::System.Object.Equals(entity.Id, this.TeilnehmerSchulungen_Teilnehmer);
        }
        global::Microsoft.LightSwitch.Internal.IEntityImplementation global::LightSwitchApplication.TeilnehmerSchulungen.DetailsClass.IImplementation.Teilnehmer
        {
            get
            {
                return this.Teilnehmer;
            }
            set
            {
                this.Teilnehmer = (global::LightSwitchApplication.Implementation.Teilnehmer)value;
            }
        }
        
        #region IEntityImplementation Members
        private global::Microsoft.LightSwitch.Internal.IEntityImplementationHost __host;
        
        global::Microsoft.LightSwitch.Internal.IEntityImplementationHost global::Microsoft.LightSwitch.Internal.IEntityImplementation.Host
        {
            get
            {
                return this.__host;
            }
        }
        
        void global::Microsoft.LightSwitch.Internal.IEntityImplementation.Initialize(global::Microsoft.LightSwitch.Internal.IEntityImplementationHost host)
        {
            this.__host = host;
        }
        
        protected override void OnPropertyChanged(global::System.ComponentModel.PropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);
            if (this.__host != null)
            {
                this.__host.RaisePropertyChanged(e.PropertyName);
            }
        }
        #endregion
    }
    #endregion
    
    #region ApplicationData
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "10.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    public class ApplicationData
        : global::Microsoft.LightSwitch.ClientGenerated.Implementation.DomainContext
    {
        public ApplicationData(global::Microsoft.LightSwitch.IDataService dataService)
            : base(dataService, global::Microsoft.LightSwitch.ClientGenerated.Implementation.DomainContext.CreateWcfDomainClient<IApplicationDataContract>(new global::System.Uri("LightSwitchApplication-Implementation-ApplicationDataDomainService.svc", global::System.UriKind.Relative)))
        {
        }
    
        public global::System.ServiceModel.DomainServices.Client.EntitySet<global::LightSwitchApplication.Implementation.Teilnehmer> TeilnehmerEntityList
        {
            get
            {
                return base.EntityContainer.GetEntitySet<global::LightSwitchApplication.Implementation.Teilnehmer>();
            }
        }
        public global::System.ServiceModel.DomainServices.Client.EntitySet<global::LightSwitchApplication.Implementation.Schulung> SchulungEntityList
        {
            get
            {
                return base.EntityContainer.GetEntitySet<global::LightSwitchApplication.Implementation.Schulung>();
            }
        }
        public global::System.ServiceModel.DomainServices.Client.EntitySet<global::LightSwitchApplication.Implementation.Referent> ReferentEntityList
        {
            get
            {
                return base.EntityContainer.GetEntitySet<global::LightSwitchApplication.Implementation.Referent>();
            }
        }
        public global::System.ServiceModel.DomainServices.Client.EntitySet<global::LightSwitchApplication.Implementation.TeilnehmerSchulungen> TeilnehmerSchulungenEntityList
        {
            get
            {
                return base.EntityContainer.GetEntitySet<global::LightSwitchApplication.Implementation.TeilnehmerSchulungen>();
            }
        }
        protected override global::System.ServiceModel.DomainServices.Client.EntityContainer CreateEntityContainer()
        {
            return new ApplicationDataEntityContainer();
        }
    
        internal sealed class ApplicationDataEntityContainer : global::System.ServiceModel.DomainServices.Client.EntityContainer
        {
            public ApplicationDataEntityContainer()
            {
                this.CreateEntitySet<global::LightSwitchApplication.Implementation.Teilnehmer>(global::System.ServiceModel.DomainServices.Client.EntitySetOperations.All);
                this.CreateEntitySet<global::LightSwitchApplication.Implementation.Schulung>(global::System.ServiceModel.DomainServices.Client.EntitySetOperations.All);
                this.CreateEntitySet<global::LightSwitchApplication.Implementation.Referent>(global::System.ServiceModel.DomainServices.Client.EntitySetOperations.All);
                this.CreateEntitySet<global::LightSwitchApplication.Implementation.TeilnehmerSchulungen>(global::System.ServiceModel.DomainServices.Client.EntitySetOperations.All);
            }
        }
    
        #region Service Contract Interface
    
        [global::System.ServiceModel.ServiceContract]
        public interface IApplicationDataContract
        {
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/Teilnehmer_Single", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/Teilnehmer_SingleResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/Teilnehmer_SingleDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginTeilnehmer_Single(string frameworkOperators, global::System.Nullable<int> Id, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Teilnehmer> EndTeilnehmer_Single(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/Teilnehmer_SingleOrDefault", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/Teilnehmer_SingleOrDefaultResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/Teilnehmer_SingleOrDefaultDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginTeilnehmer_SingleOrDefault(string frameworkOperators, global::System.Nullable<int> Id, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Teilnehmer> EndTeilnehmer_SingleOrDefault(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/Teilnehmer_All", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/Teilnehmer_AllResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/Teilnehmer_AllDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginTeilnehmer_All(string frameworkOperators, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Teilnehmer> EndTeilnehmer_All(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/Schulungen_Single", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/Schulungen_SingleResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/Schulungen_SingleDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginSchulungen_Single(string frameworkOperators, global::System.Nullable<int> Id, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Schulung> EndSchulungen_Single(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/Schulungen_SingleOrDefault", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/Schulungen_SingleOrDefaultResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/Schulungen_SingleOrDefaultDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginSchulungen_SingleOrDefault(string frameworkOperators, global::System.Nullable<int> Id, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Schulung> EndSchulungen_SingleOrDefault(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/Schulungen_All", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/Schulungen_AllResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/Schulungen_AllDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginSchulungen_All(string frameworkOperators, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Schulung> EndSchulungen_All(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/Referenten_Single", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/Referenten_SingleResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/Referenten_SingleDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginReferenten_Single(string frameworkOperators, global::System.Nullable<int> Id, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Referent> EndReferenten_Single(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/Referenten_SingleOrDefault", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/Referenten_SingleOrDefaultResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/Referenten_SingleOrDefaultDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginReferenten_SingleOrDefault(string frameworkOperators, global::System.Nullable<int> Id, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Referent> EndReferenten_SingleOrDefault(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/Referenten_All", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/Referenten_AllResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/Referenten_AllDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginReferenten_All(string frameworkOperators, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Referent> EndReferenten_All(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/TeilnehmerSchulungen_Single", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/TeilnehmerSchulungen_SingleResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/TeilnehmerSchulungen_SingleDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginTeilnehmerSchulungen_Single(string frameworkOperators, global::System.Nullable<int> Id, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.TeilnehmerSchulungen> EndTeilnehmerSchulungen_Single(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/TeilnehmerSchulungen_SingleOrDefault", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/TeilnehmerSchulungen_SingleOrDefaultResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/TeilnehmerSchulungen_SingleOrDefaultDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginTeilnehmerSchulungen_SingleOrDefault(string frameworkOperators, global::System.Nullable<int> Id, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.TeilnehmerSchulungen> EndTeilnehmerSchulungen_SingleOrDefault(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/TeilnehmerSchulungen_All", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/TeilnehmerSchulungen_AllResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/TeilnehmerSchulungen_AllDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginTeilnehmerSchulungen_All(string frameworkOperators, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.TeilnehmerSchulungen> EndTeilnehmerSchulungen_All(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/SchulungenInDerZukunft", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/SchulungenInDerZukunftResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/SchulungenInDerZukunftDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginSchulungenInDerZukunft(string frameworkOperators, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Schulung> EndSchulungenInDerZukunft(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/SchulungImZeitraum", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/SchulungImZeitraumResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/SchulungImZeitraumDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginSchulungImZeitraum(string frameworkOperators, global::System.Nullable<global::System.DateTime> Beginn, global::System.Nullable<global::System.DateTime> Ende, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Schulung> EndSchulungImZeitraum(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/SchulungenMitWenigerAls3Teilnehmern", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/SchulungenMitWenigerAls3TeilnehmernResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/SchulungenMitWenigerAls3TeilnehmernDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginSchulungenMitWenigerAls3Teilnehmern(string frameworkOperators, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.ServiceModel.DomainServices.Client.QueryResult<global::LightSwitchApplication.Implementation.Schulung> EndSchulungenMitWenigerAls3Teilnehmern(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/SubmitChanges", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/SubmitChangesResponse"),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/SubmitChangesDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult BeginSubmitChanges(global::System.Collections.Generic.IEnumerable<global::System.ServiceModel.DomainServices.Client.ChangeSetEntry> changeSet, global::System.AsyncCallback callback, global::System.Object asyncState);
            global::System.Collections.Generic.IEnumerable<global::System.ServiceModel.DomainServices.Client.ChangeSetEntry> EndSubmitChanges(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/__GetEntitySetCanInformation", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/__GetEntitySetCanInformationResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/__GetEntitySetCanInformationDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult Begin__GetEntitySetCanInformation(string entitySetName, global::System.AsyncCallback callback, global::System.Object asyncState);
            int End__GetEntitySetCanInformation(global::System.IAsyncResult result);
            
            [global::System.ServiceModel.OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ApplicationDataDomainService/__CanExecuteOperation", ReplyAction = "http://tempuri.org/ApplicationDataDomainService/__CanExecuteOperationResponse"),
             global::System.ServiceModel.Web.WebGet(),
             global::System.ServiceModel.FaultContract(typeof(global::System.ServiceModel.DomainServices.Client.DomainServiceFault), Action = "http://tempuri.org/ApplicationDataDomainService/__CanExecuteOperationDomainServiceFault", Name = "DomainServiceFault", Namespace = "DomainServices")]
            global::System.IAsyncResult Begin__CanExecuteOperation(string operationName, global::System.AsyncCallback callback, global::System.Object asyncState);
            bool End__CanExecuteOperation(global::System.IAsyncResult result);
            
        }
    
        #endregion
    
        protected override global::Microsoft.LightSwitch.Internal.IEntityImplementation CreateEntityImplementation<T>()
        {
            if (typeof(T) == typeof(global::LightSwitchApplication.Teilnehmer))
            {
                return new global::LightSwitchApplication.Implementation.Teilnehmer();
            }
            if (typeof(T) == typeof(global::LightSwitchApplication.Schulung))
            {
                return new global::LightSwitchApplication.Implementation.Schulung();
            }
            if (typeof(T) == typeof(global::LightSwitchApplication.Referent))
            {
                return new global::LightSwitchApplication.Implementation.Referent();
            }
            if (typeof(T) == typeof(global::LightSwitchApplication.TeilnehmerSchulungen))
            {
                return new global::LightSwitchApplication.Implementation.TeilnehmerSchulungen();
            }
            return null;
        }
    }
    #endregion
    
    #region DataServiceImplementationFactory
    [global::System.ComponentModel.Composition.PartCreationPolicy(global::System.ComponentModel.Composition.CreationPolicy.Shared)]
    [global::System.ComponentModel.Composition.Export(typeof(global::Microsoft.LightSwitch.Internal.IDataServiceFactory))]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "10.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    public class DataServiceFactory :
        global::Microsoft.LightSwitch.ClientGenerated.Implementation.DataServiceFactory
    {
    
        protected override global::Microsoft.LightSwitch.IDataService CreateDataService(global::System.Type dataServiceType)
        {
            if (dataServiceType == typeof(global::LightSwitchApplication.ApplicationData))
            {
                return new global::LightSwitchApplication.ApplicationData();
            }
            return base.CreateDataService(dataServiceType);
        }
    
        protected override global::Microsoft.LightSwitch.Internal.IDataServiceImplementation CreateDataServiceImplementation<TDataService>(TDataService dataService)
        {
            if (typeof(TDataService) == typeof(global::LightSwitchApplication.ApplicationData))
            {
                return new global::LightSwitchApplication.Implementation.ApplicationData(dataService);
            }
            return base.CreateDataServiceImplementation(dataService);
        }
    }
    #endregion
    
    [global::System.ComponentModel.Composition.PartCreationPolicy(global::System.ComponentModel.Composition.CreationPolicy.Shared)]
    [global::System.ComponentModel.Composition.Export(typeof(global::Microsoft.LightSwitch.Internal.ITypeMappingProvider))]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "10.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    public class __TypeMapping
        : global::Microsoft.LightSwitch.Internal.ITypeMappingProvider
    {
        global::System.Type global::Microsoft.LightSwitch.Internal.ITypeMappingProvider.GetImplementationType(global::System.Type definitionType)
        {
            if (typeof(global::LightSwitchApplication.Teilnehmer) == definitionType)
            {
                return typeof(global::LightSwitchApplication.Implementation.Teilnehmer);
            }
            if (typeof(global::LightSwitchApplication.Schulung) == definitionType)
            {
                return typeof(global::LightSwitchApplication.Implementation.Schulung);
            }
            if (typeof(global::LightSwitchApplication.Referent) == definitionType)
            {
                return typeof(global::LightSwitchApplication.Implementation.Referent);
            }
            if (typeof(global::LightSwitchApplication.TeilnehmerSchulungen) == definitionType)
            {
                return typeof(global::LightSwitchApplication.Implementation.TeilnehmerSchulungen);
            }
            return null;
        }
    }
}
