Files
BeWoPlaner/Data/Entities/BankAccount.cs

113 lines
2.4 KiB
C#
Raw Normal View History

2016-06-27 01:45:38 +02:00
using BS.Shared;
2024-11-26 16:09:02 +01:00
using BS.Shared.Extensions;
2016-06-27 01:45:38 +02:00
namespace BeWo.Data.Entities
{
public class BankAccount : BeWoEntityBase
{
public static string PropertyName_AccountNumber = "AccountNumber";
public static string PropertyName_BankCode = "BankCode";
public static string PropertyName_BankName = "BankName";
public static string PropertyName_Bic = "Bic";
public static string PropertyName_IBAN = "IBAN";
private string _AccountNumber;
private string _BankCode;
private string _BankName;
private string _Bic;
private string _IBAN;
public BankAccount()
{
this._Tid = TableID.BankAccount;
}
public virtual string AccountNumber
{
get
{
2024-11-26 16:09:02 +01:00
return _AccountNumber.ToNullIfEmpty();
2016-06-27 01:45:38 +02:00
}
set
{
2024-11-26 16:09:02 +01:00
if (AreDifferent(AccountNumber, value))
2016-06-27 01:45:38 +02:00
{
2024-11-26 16:09:02 +01:00
_AccountNumber = value;
2016-06-27 01:45:38 +02:00
}
}
}
public virtual string BankCode
{
get
{
2024-11-26 16:09:02 +01:00
return _BankCode.ToNullIfEmpty();
2016-06-27 01:45:38 +02:00
}
set
{
2024-11-26 16:09:02 +01:00
if (AreDifferent(BankCode, value))
2016-06-27 01:45:38 +02:00
{
2024-11-26 16:09:02 +01:00
_BankCode = value;
2016-06-27 01:45:38 +02:00
}
}
}
public virtual string BankName
{
get
{
2024-11-26 16:09:02 +01:00
return _BankName.ToNullIfEmpty();
2016-06-27 01:45:38 +02:00
}
set
{
2024-11-26 16:09:02 +01:00
if (AreDifferent(BankName, value))
2016-06-27 01:45:38 +02:00
{
2024-11-26 16:09:02 +01:00
_BankName = value;
2016-06-27 01:45:38 +02:00
}
}
}
public virtual string Bic
{
get
{
2024-11-26 16:09:02 +01:00
return _Bic.ToNullIfEmpty();
2016-06-27 01:45:38 +02:00
}
set
{
2024-11-26 16:09:02 +01:00
if (AreDifferent(Bic, value))
2016-06-27 01:45:38 +02:00
{
2024-11-26 16:09:02 +01:00
_Bic = value;
2016-06-27 01:45:38 +02:00
}
}
}
public virtual string IBAN
{
get
{
2024-11-26 16:09:02 +01:00
return _IBAN.ToNullIfEmpty();
2016-06-27 01:45:38 +02:00
}
set
{
2024-11-26 16:09:02 +01:00
if (AreDifferent(IBAN, value))
2016-06-27 01:45:38 +02:00
{
2024-11-26 16:09:02 +01:00
_IBAN = value;
2016-06-27 01:45:38 +02:00
}
}
}
}
}