//------------------------------------------------------------------------------
// <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(@"BEWEGUNGBASE")]
    public partial class BewegungBase : SiegelBase
    {
        int fID;
        [Key(true)]
        public int ID
        {
            get { return fID; }
            set { SetPropertyValue<int>(nameof(ID), ref fID, value); }
        }
        RolleBase fRollennr;
        [Indexed(@"Artikelnr", Name = @"Bewegungbase_RolleArtikel", Unique = true)]
        [Persistent(@"ROLLENNR")]
        [Association(@"BewegungBaseReferencesRolleBase")]
        public RolleBase Rollennr
        {
            get { return fRollennr; }
            set { SetPropertyValue<RolleBase>(nameof(Rollennr), ref fRollennr, value); }
        }
        Artikel fArtikelnr;
        [Persistent(@"ARTIKELNR")]
        public Artikel Artikelnr
        {
            get { return fArtikelnr; }
            set { SetPropertyValue<Artikel>(nameof(Artikelnr), ref fArtikelnr, value); }
        }
        int fPos;
        [Persistent(@"POS")]
        public int Pos
        {
            get { return fPos; }
            set { SetPropertyValue<int>(nameof(Pos), ref fPos, value); }
        }
        RolleBase fStartnr;
        [Persistent(@"STARTNR")]
        public RolleBase Startnr
        {
            get { return fStartnr; }
            set { SetPropertyValue<RolleBase>(nameof(Startnr), ref fStartnr, value); }
        }
        string fEndnr;
        [Persistent(@"ENDNR")]
        public string Endnr
        {
            get { return fEndnr; }
            set { SetPropertyValue<string>(nameof(Endnr), ref fEndnr, value); }
        }
        Bogen fBogennr;
        [Persistent(@"BOGENNR")]
        public Bogen Bogennr
        {
            get { return fBogennr; }
            set { SetPropertyValue<Bogen>(nameof(Bogennr), ref fBogennr, value); }
        }
        int fMenge;
        [Persistent(@"MENGE")]
        public int Menge
        {
            get { return fMenge; }
            set { SetPropertyValue<int>(nameof(Menge), ref fMenge, value); }
        }
        Innung fInnungsnr;
        [Persistent(@"INNUNGSNR")]
        [Association(@"BewegungBaseReferencesInnung")]
        public Innung Innungsnr
        {
            get { return fInnungsnr; }
            set { SetPropertyValue<Innung>(nameof(Innungsnr), ref fInnungsnr, value); }
        }
    }

}
