150 lines
3.4 KiB
C#
150 lines
3.4 KiB
C#
using BS.Shared;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BeWo.Data.Entities
|
|
{
|
|
[DebuggerDisplay("{Oid}({Origin.Oid},{Destination.Oid}): {Distance_in_meter}m, {Time_in_seconds}s")]
|
|
public class AddressRoute : BeWoEntityBase
|
|
{
|
|
private Address _Origin;
|
|
private long _Origin_Version;
|
|
private Address _Destination;
|
|
private long _Destination_Version;
|
|
|
|
private int distance_in_meter;
|
|
private string distance_in_meter_txt;
|
|
private int time_in_seconds;
|
|
private string time_in_seconds_txt;
|
|
|
|
public AddressRoute()
|
|
{
|
|
_Tid = TableID.AddressRoute;
|
|
}
|
|
|
|
public virtual Address Origin
|
|
{
|
|
get
|
|
{
|
|
return _Origin;
|
|
}
|
|
set
|
|
{
|
|
if (AreDifferent(_Origin, value))
|
|
{
|
|
_Origin = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual long Origin_Version
|
|
{
|
|
get
|
|
{
|
|
return _Origin_Version;
|
|
}
|
|
set
|
|
{
|
|
if (AreDifferent(_Origin_Version, value))
|
|
{
|
|
_Origin_Version = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual Address Destination
|
|
{
|
|
get
|
|
{
|
|
return _Destination;
|
|
}
|
|
set
|
|
{
|
|
if (AreDifferent(_Destination, value))
|
|
{
|
|
_Destination = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual long Destination_Version
|
|
{
|
|
get
|
|
{
|
|
return _Destination_Version;
|
|
}
|
|
set
|
|
{
|
|
if (AreDifferent(_Destination_Version, value))
|
|
{
|
|
_Destination_Version = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual int Distance_in_meter
|
|
{
|
|
get
|
|
{
|
|
return distance_in_meter;
|
|
}
|
|
set
|
|
{
|
|
if (AreDifferent(distance_in_meter, value))
|
|
{
|
|
distance_in_meter = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual string Distance_in_meter_txt
|
|
{
|
|
get
|
|
{
|
|
return distance_in_meter_txt;
|
|
}
|
|
set
|
|
{
|
|
if (AreDifferent(distance_in_meter_txt, value))
|
|
{
|
|
distance_in_meter_txt = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual int Time_in_seconds
|
|
{
|
|
get
|
|
{
|
|
return time_in_seconds;
|
|
}
|
|
set
|
|
{
|
|
if (AreDifferent(time_in_seconds, value))
|
|
{
|
|
time_in_seconds = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual string Time_in_seconds_txt
|
|
{
|
|
get
|
|
{
|
|
return time_in_seconds_txt;
|
|
}
|
|
set
|
|
{
|
|
if (AreDifferent(time_in_seconds_txt, value))
|
|
{
|
|
time_in_seconds_txt = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|