mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
auto increment ID.
model tables are automatically created.
This commit is contained in:
parent
aeebae33fd
commit
7603d8e1ba
8 changed files with 35 additions and 6 deletions
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue