//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------
using System;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using System.Collections.Generic;
using System.ComponentModel;
namespace Siegelportal.Module.BusinessObjects.Siegelportal
{

    [Persistent(@"KUNDE")]
    public partial class Kunde : SiegelBase
    {
        int fID;
        [Key(true)]
        public int ID
        {
            get { return fID; }
            set { SetPropertyValue<int>(nameof(ID), ref fID, value); }
        }
        string fKundennr;
        [Indexed(@"Innung", Name = @"Kunde_Kundennr", Unique = true)]
        [Persistent(@"KUNDENNR")]
        public string Kundennr
        {
            get { return fKundennr; }
            set { SetPropertyValue<string>(nameof(Kundennr), ref fKundennr, value); }
        }
        Innung fInnung;
        [Persistent(@"INNUNG")]
        [Association(@"KundeReferencesInnung")]
        public Innung Innung
        {
            get { return fInnung; }
            set { SetPropertyValue<Innung>(nameof(Innung), ref fInnung, value); }
        }
        string fName1;
        [Persistent(@"NAME1")]
        public string Name1
        {
            get { return fName1; }
            set { SetPropertyValue<string>(nameof(Name1), ref fName1, value); }
        }
        string fName2;
        [Persistent(@"NAME2")]
        public string Name2
        {
            get { return fName2; }
            set { SetPropertyValue<string>(nameof(Name2), ref fName2, value); }
        }
        string fStrasse;
        [Persistent(@"STRASSE")]
        public string Strasse
        {
            get { return fStrasse; }
            set { SetPropertyValue<string>(nameof(Strasse), ref fStrasse, value); }
        }
        string fPLZ;
        public string PLZ
        {
            get { return fPLZ; }
            set { SetPropertyValue<string>(nameof(PLZ), ref fPLZ, value); }
        }
        string fOrt;
        [Persistent(@"ORT")]
        public string Ort
        {
            get { return fOrt; }
            set { SetPropertyValue<string>(nameof(Ort), ref fOrt, value); }
        }
        string fTelefon;
        [Persistent(@"TELEFON")]
        public string Telefon
        {
            get { return fTelefon; }
            set { SetPropertyValue<string>(nameof(Telefon), ref fTelefon, value); }
        }
        string fEmail;
        [Persistent(@"EMAIL")]
        public string Email
        {
            get { return fEmail; }
            set { SetPropertyValue<string>(nameof(Email), ref fEmail, value); }
        }
        int fIstAktiv;
        [Persistent(@"ISTAKTIV")]
        public int IstAktiv
        {
            get { return fIstAktiv; }
            set { SetPropertyValue<int>(nameof(IstAktiv), ref fIstAktiv, value); }
        }
        string fInfo;
        [Persistent(@"INFO")]
        public string Info
        {
            get { return fInfo; }
            set { SetPropertyValue<string>(nameof(Info), ref fInfo, value); }
        }
        int fRabatt;
        public int Rabatt
        {
            get { return fRabatt; }
            set { SetPropertyValue<int>(nameof(Rabatt), ref fRabatt, value); }
        }
        int fIstMitglied;
        [Persistent(@"ISTMITGLIED")]
        public int IstMitglied
        {
            get { return fIstMitglied; }
            set { SetPropertyValue<int>(nameof(IstMitglied), ref fIstMitglied, value); }
        }
        string fBuchungskonto1;
        [Persistent(@"BUCHUNGSKONTO1")]
        public string Buchungskonto1
        {
            get { return fBuchungskonto1; }
            set { SetPropertyValue<string>(nameof(Buchungskonto1), ref fBuchungskonto1, value); }
        }
        string fBuchungskonto2;
        [Persistent(@"BUCHUNGSKONTO2")]
        public string Buchungskonto2
        {
            get { return fBuchungskonto2; }
            set { SetPropertyValue<string>(nameof(Buchungskonto2), ref fBuchungskonto2, value); }
        }
        [Association(@"RechnungskopfReferencesKunde"), Aggregated]
        public XPCollection<Rechnungskopf> Rechnungskopfs { get { return GetCollection<Rechnungskopf>(nameof(Rechnungskopfs)); } }
        [Association(@"LieferscheinkopfReferencesKunde"), Aggregated]
        public XPCollection<Lieferscheinkopf> Lieferscheinkopfs { get { return GetCollection<Lieferscheinkopf>(nameof(Lieferscheinkopfs)); } }
        [Association(@"RetoureReferencesKunde"), Aggregated]
        public XPCollection<Retoure> Retoures { get { return GetCollection<Retoure>(nameof(Retoures)); } }
    }

}
