1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-19 10:54:05 +02:00

21 lines
415 B
C#
Raw Normal View History

2013-02-26 18:28:55 -08:00
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
{
[JsonIgnore]
public int Id
{
get { return OID; }
set { OID = value; }
}
[JsonProperty(PropertyName = "id")]
2013-02-26 18:28:55 -08:00
public int OID { get; set; }
2013-02-04 20:07:07 -08:00
}
}