auto increment ID.

model tables are automatically created.
This commit is contained in:
kay.one 2013-03-24 03:09:32 -07:00
parent aeebae33fd
commit 7603d8e1ba
8 changed files with 35 additions and 6 deletions

View file

@ -1,10 +1,12 @@
using System.Diagnostics;
using ServiceStack.DataAnnotations;
namespace NzbDrone.Core.Datastore
{
[DebuggerDisplay("{GetType()} ID = {Id}")]
public abstract class ModelBase
{
[AutoIncrement]
public int Id { get; set; }
}
}