♻️ refactored - removed ID from db
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
0fdc0e6af5
commit
f19dda9a42
6 changed files with 21 additions and 49 deletions
|
@ -6,11 +6,9 @@ using System.Globalization;
|
|||
|
||||
namespace backend;
|
||||
|
||||
// [PrimaryKey(nameof(Id))]
|
||||
[PrimaryKey(nameof(imdbID))]
|
||||
public class MovieDB
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public string Year { get; set; }
|
||||
|
@ -20,14 +18,4 @@ public class MovieDB
|
|||
public string Type { get; set; }
|
||||
|
||||
public string Poster { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class MovieDBMap : ClassMap<MovieDB>
|
||||
{
|
||||
public MovieDBMap()
|
||||
{
|
||||
AutoMap(CultureInfo.InvariantCulture);
|
||||
Map(m => m.Id).Ignore();
|
||||
}
|
||||
}
|
Reference in a new issue