Files
BeWoPlaner/Data/Entities/Organisation2Person.cs

85 lines
2.1 KiB
C#

using System.Collections.Generic;
using BS.Shared;
namespace BeWo.Data.Entities
{
public class Organisation2Person : BeWoEntityBase
{
public static string PropertyName_Contacts = "Contacts";
public static string PropertyName_Organisation = "Organisation";
public static string PropertyName_ValueList = "ValueList";
public static string PropertyName_RoleInOrganisation = "Rolle in der Organisation";
private IList<Contact> _Contacts;
private Organisation _Organisation;
private Person _Person;
private ValueListEntry _RolleInOrganisation;
public Organisation2Person()
{
this._Tid = TableID.Organisation2Person;
}
public virtual IList<Contact> Contacts
{
get
{
return this._Contacts ?? (this._Contacts = new List<Contact>());
}
set
{
if (this.AreDifferent(this._Contacts, value))
{
this._Contacts = value;
}
}
}
public virtual Organisation Organisation
{
get
{
return this._Organisation;
}
set
{
if (this.AreDifferent(this._Organisation, value))
{
this._Organisation = value;
}
}
}
public virtual Person Person
{
get { return this._Person; }
set
{
if (this.AreDifferent(this._Person, value))
this._Person = value;
}
}
public virtual ValueListEntry RolleInOrganisation
{
get{ return _RolleInOrganisation;}
set
{
if (this.AreDifferent(this._RolleInOrganisation, value))
{
_RolleInOrganisation = value;
}
}
}
}
}