Sonarr/NzbDrone.Core/Datastore/ModelBase.cs

23 lines
427 B
C#
Raw Normal View History

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