1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-07-05 00:49:20 +02:00
Files
Sonarr/NzbDrone.Core/Datastore/ModelBase.cs

23 lines
427 B
C#
Raw Normal View History

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