Change id types (#114)
* Change id types * Updated more models * Saving changes * Should be it
This commit was merged in pull request #114.
This commit is contained in:
@@ -18,6 +18,14 @@ public class AlbumContext : DbContext
|
||||
{
|
||||
modelBuilder.Entity<Album>()
|
||||
.ToTable("Album");
|
||||
|
||||
modelBuilder.Entity<Album>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id);
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("binary(16)");
|
||||
});
|
||||
}
|
||||
|
||||
public Album RetrieveRecord(Album album)
|
||||
|
||||
Reference in New Issue
Block a user