...
This commit is contained in:
@@ -50,6 +50,7 @@ namespace TaxPayer.Infrastructure.Persistence
|
||||
public DbSet<Promotion> Promotions { get; set; }
|
||||
public DbSet<PromotionDetails> PromotionDetails { get; set; }
|
||||
public DbSet<CreditDocuments> CreditDocuments { get; set; }
|
||||
public DbSet<Condition> Conditions { get; set; }
|
||||
#endregion
|
||||
//public override Task<int> SaveChangesAsync(CancellationToken cancellationToken = new CancellationToken())
|
||||
//{
|
||||
|
16
Back/Data/Models/Condition.cs
Normal file
16
Back/Data/Models/Condition.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Back.Data.Models
|
||||
{
|
||||
public class Condition
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int fildID { get; set; }
|
||||
public string condition { get; set; }
|
||||
|
||||
|
||||
//----------nav
|
||||
[ForeignKey("fildID")]
|
||||
public Fild fild { get; set; }
|
||||
}
|
||||
}
|
@@ -16,6 +16,7 @@ namespace Back.Data.Models
|
||||
#region Navigation
|
||||
public virtual ICollection<FildModeInPattern> FildModeInPatterns { get; set; }
|
||||
public virtual ICollection<Coding> Codings { get; set; }
|
||||
public virtual ICollection<Condition> Conditions { get; set; }
|
||||
[NotMapped]
|
||||
public ICollection<SpecialCondition> specialConditions { get; set; }
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user