1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/NzbDrone.Core/Datastore/ModelBase.cs

23 lines
443 B
C#
Raw Normal View History

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