Files
BeWoPlaner/Data/Entities/Wohneinheit.cs

320 lines
8.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeWo.Data.Entities
{
public class Wohneinheit : BeWoEntityBase
{
public static string PropertyName_Wohnheim = nameof(Wohnheim);
//public static string PropertyName_WohnheimOid = nameof(WohnheimOid);
public static string PropertyName_Wohnname = nameof(Wohnname);
public static string PropertyName_Zimmername = nameof(Zimmername);
public static string PropertyName_Miete = nameof(Miete);
public static string PropertyName_Heizung = nameof(Heizung);
public static string PropertyName_Strom = nameof(Strom);
public static string PropertyName_Betriebskosten = nameof(Betriebskosten);
public static string PropertyName_SonstigeKosten = nameof(SonstigeKosten);
public static string PropertyName_Kaution = nameof(Kaution);
public static string PropertyName_QM = nameof(QM);
public static string PropertyName_Baujahr = nameof(Baujahr);
public static string PropertyName_Mobilierung = nameof(Mobilierung);
public static string PropertyName_Zusatznotiz = nameof(Zusatznotiz);
public static string PropertyName_Stock = nameof(Stock);
public static string PropertyName_Belegungen = nameof(Belegungen);
private Wohnheim _Wohnheim;
//private long? _WohnheimOid;
private string _Wohnname;
private string _Zimmername;
private decimal? _Miete;
private decimal? _Heizung;
private decimal? _Strom;
private decimal? _Betriebskosten;
private decimal? _SonstigeKosten;
private decimal? _Kaution;
private decimal? _QM;
private int? _Baujahr;
private string _Mobilierung;
private string _Zusatznotiz;
private string _Stock;
private IList<WohneinheitBelegung> _Belegungen;
private IList<Image> _Grundrisse;
public Wohneinheit()
{
_Tid = BS.Shared.TableID.Wohneinheit;
}
public virtual Wohnheim Wohnheim
{
get
{
return _Wohnheim;
}
set
{
if (AreDifferent(this._Wohnheim, value))
{
_Wohnheim = value;
}
}
}
//public virtual long? WohnheimOid
//{
// get
// {
// return _WohnheimOid;
// }
// set
// {
// if (AreDifferent(this._WohnheimOid, value))
// {
// _WohnheimOid = value;
// }
// }
//}
public virtual string Wohnname
{
get
{
return this._Wohnname;
}
set
{
if (this.AreDifferent(this._Wohnname, value))
{
this._Wohnname = value;
}
}
}
public virtual string Zimmername
{
get
{
return this._Zimmername;
}
set
{
if (this.AreDifferent(this._Zimmername, value))
{
this._Zimmername = value;
}
}
}
public virtual decimal? Miete
{
get
{
return this._Miete;
}
set
{
if (this.AreDifferent(this._Miete, value))
{
this._Miete = value;
}
}
}
public virtual decimal? Heizung
{
get
{
return this._Heizung;
}
set
{
if (this.AreDifferent(this._Heizung, value))
{
this._Heizung = value;
}
}
}
public virtual decimal? Strom
{
get
{
return this._Strom;
}
set
{
if (this.AreDifferent(this._Strom, value))
{
this._Strom = value;
}
}
}
public virtual decimal? Betriebskosten
{
get
{
return this._Betriebskosten;
}
set
{
if (this.AreDifferent(this._Betriebskosten, value))
{
this._Betriebskosten = value;
}
}
}
public virtual decimal? SonstigeKosten
{
get
{
return this._SonstigeKosten;
}
set
{
if (this.AreDifferent(this._SonstigeKosten, value))
{
this._SonstigeKosten = value;
}
}
}
public virtual decimal? Kaution
{
get
{
return this._Kaution;
}
set
{
if (this.AreDifferent(this._Kaution, value))
{
this._Kaution = value;
}
}
}
public virtual decimal? QM
{
get
{
return this._QM;
}
set
{
if (this.AreDifferent(this._QM, value))
{
this._QM = value;
}
}
}
public virtual int? Baujahr
{
get
{
return this._Baujahr;
}
set
{
if (this.AreDifferent(this._Baujahr, value))
{
this._Baujahr = value;
}
}
}
public virtual string Mobilierung
{
get
{
return this._Mobilierung;
}
set
{
if (this.AreDifferent(this._Mobilierung, value))
{
this._Mobilierung = value;
}
}
}
public virtual string Zusatznotiz
{
get
{
return this._Zusatznotiz;
}
set
{
if (this.AreDifferent(this._Zusatznotiz, value))
{
this._Zusatznotiz = value;
}
}
}
public virtual string Stock
{
get
{
return this._Stock;
}
set
{
if (this.AreDifferent(this._Stock, value))
{
this._Stock = value;
}
}
}
public virtual string Details1 { get; set; }
public virtual string Details2 { get; set; }
public virtual string Details3 { get; set; }
public virtual string Details4 { get; set; }
public virtual string Details5 { get; set; }
public virtual string Details6 { get; set; }
public virtual string Details7 { get; set; }
public virtual string Details8 { get; set; }
public virtual string Details9 { get; set; }
public virtual string Details10 { get; set; }
public virtual IList<WohneinheitBelegung> Belegungen
{
get
{
return this._Belegungen;
}
set
{
if (this.AreDifferent(this._Belegungen, value))
{
this._Belegungen = value;
}
}
}
public virtual IList<Image> Grundrisse
{
get
{
return _Grundrisse;
}
set
{
if (AreDifferent(_Grundrisse, value))
{
_Grundrisse = value;
}
}
}
}
}