2013-02-27 03:28:55 +01:00
|
|
|
|
using System.Diagnostics;
|
2013-02-23 22:29:22 +01:00
|
|
|
|
using System.Linq;
|
2013-02-18 04:18:25 +01:00
|
|
|
|
using Newtonsoft.Json;
|
2013-02-05 05:07:07 +01:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Datastore
|
|
|
|
|
{
|
2013-02-26 04:58:57 +01:00
|
|
|
|
[DebuggerDisplay("{GetType()} ID = {Id}")]
|
2013-02-18 04:18:25 +01:00
|
|
|
|
public abstract class ModelBase
|
2013-02-05 05:07:07 +01:00
|
|
|
|
{
|
2013-02-26 04:58:57 +01:00
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public int Id
|
|
|
|
|
{
|
|
|
|
|
get { return OID; }
|
|
|
|
|
set { OID = value; }
|
|
|
|
|
}
|
|
|
|
|
|
2013-02-18 04:18:25 +01:00
|
|
|
|
[JsonProperty(PropertyName = "id")]
|
2013-02-27 03:28:55 +01:00
|
|
|
|
public int OID { get; set; }
|
2013-02-05 05:07:07 +01:00
|
|
|
|
}
|
|
|
|
|
}
|