Skip to content

Commit

Permalink
#115 - Use SQL generated identity for entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Mar 24, 2020
1 parent 91d7c18 commit 65b4195
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Recollections.Entries.Data/Entry.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.IO;
using System.Linq;
using System.Text;
Expand All @@ -10,7 +11,8 @@ namespace Neptuo.Recollections.Entries
{
public class Entry
{
[Key]
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string Id { get; set; }

public string UserId { get; set; }
Expand Down

0 comments on commit 65b4195

Please sign in to comment.