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