Большая пачка обновлений
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Pf2eModel.Model.Enum;
|
||||
using Newtonsoft.Json;
|
||||
using Pf2eModel.Model.Enum;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
@@ -7,7 +8,7 @@ namespace Pf2eModel.Model.Structure.BackgroundRelation;
|
||||
public partial class BackgroundBoost
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Column(Order = 1)]
|
||||
public int Id { get; set; }
|
||||
|
||||
@@ -17,5 +18,6 @@ public partial class BackgroundBoost
|
||||
[Column(Order = 3)]
|
||||
public AttributeValues Attribute { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual Background Background { get; set; } = null!;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Newtonsoft.Json;
|
||||
using Pf2eModel.Model.Base;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
@@ -16,6 +17,7 @@ public partial class BackgroundItem
|
||||
[Column(Order = 3)]
|
||||
public int? Level { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual Background Background { get; set; } = null!;
|
||||
|
||||
public virtual Entity Entity { get; set; } = null!;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Pf2eModel.Model.Common;
|
||||
using Newtonsoft.Json;
|
||||
using Pf2eModel.Model.Common;
|
||||
using Pf2eModel.Model.Enum;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
@@ -21,6 +22,7 @@ public partial class BackgroundTraining
|
||||
[Column(Order = 4)]
|
||||
public TrainingStage Level { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual Background Background { get; set; } = null!;
|
||||
|
||||
public virtual Training Training { get; set; } = null!;
|
||||
|
||||
Reference in New Issue
Block a user