Updated the table class files to allow a nullable ad special ID and changed the enum in the new modify record form to a boolean. Added a form to manage ad special keywords, still needs to handle removing them properly.
This commit is contained in:
@@ -8,6 +8,14 @@ namespace AdvertsingProfitControl
|
||||
|
||||
public partial class AdSpecial
|
||||
{
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public AdSpecial()
|
||||
{
|
||||
ActualSales = new HashSet<ActualSale>();
|
||||
Inventories = new HashSet<Inventory>();
|
||||
Projections = new HashSet<Projection>();
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
@@ -16,5 +24,14 @@ namespace AdvertsingProfitControl
|
||||
|
||||
[StringLength(256)]
|
||||
public string Description { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<ActualSale> ActualSales { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Inventory> Inventories { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
public virtual ICollection<Projection> Projections { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user