//------------------------------------------------------------------------------
// <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(@"OFFENEBESTELLUNG")]
    public partial class OffeneBestellung : SiegelBase
    {
        int fID;
        [Key(true)]
        public int ID
        {
            get { return fID; }
            set { SetPropertyValue<int>(nameof(ID), ref fID, value); }
        }
        Innung fInnungsnr;
        [Persistent(@"INNUNGSNR")]
        [Association(@"OffeneBestellungReferencesInnung")]
        public Innung Innungsnr
        {
            get { return fInnungsnr; }
            set { SetPropertyValue<Innung>(nameof(Innungsnr), ref fInnungsnr, value); }
        }
        string fBestellnr;
        [Persistent(@"BESTELLNR")]
        public string Bestellnr
        {
            get { return fBestellnr; }
            set { SetPropertyValue<string>(nameof(Bestellnr), ref fBestellnr, value); }
        }
        [Association(@"WareneingangKopfReferencesOffeneBestellung"), Aggregated]
        public XPCollection<WareneingangKopf> WareneingangKopfs { get { return GetCollection<WareneingangKopf>(nameof(WareneingangKopfs)); } }
    }

}
