Whatever this is
This commit is contained in:
@@ -13,10 +13,14 @@ namespace PartSource.Data.Contexts
|
||||
|
||||
public DbSet<DcfMapping> DcfMappings { get; set; }
|
||||
|
||||
public DbSet<Part> Parts { get; set; }
|
||||
|
||||
public DbSet<Fitment> Fitments { get; set; }
|
||||
|
||||
public DbSet<FitmentNote> FitmentNotes { get; set; }
|
||||
|
||||
public DbSet<ProductType> ProductTypes { get; set; }
|
||||
|
||||
public DbSet<Vehicle> Vehicles { get; set; }
|
||||
|
||||
public DbSet<VehicleFitment> VehicleFitments { get; set; }
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace PartSource.Data.Contexts
|
||||
|
||||
public DbSet<PartPrice> PartPrices { get; set; }
|
||||
|
||||
public DbSet<Part> Parts { get; set; }
|
||||
// public DbSet<Part> Parts { get; set; }
|
||||
|
||||
public DbSet<ShopifyChangelog> ShopifyChangelogs { get; set; }
|
||||
|
||||
|
||||
@@ -7,8 +7,13 @@ namespace PartSource.Data.Dtos
|
||||
{
|
||||
public class VehicleFitmentDto : VehicleFitment
|
||||
{
|
||||
public string PartDescription { get; set; }
|
||||
|
||||
// May not be needed, but don't remove just yet
|
||||
public IList<string> SubmodelNames { get; set; }
|
||||
|
||||
public IList<string> DriveTypes { get; set; }
|
||||
|
||||
public IList<string> Notes { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Data/Models/ProductType.cs
Normal file
17
PartSource.Data/Models/ProductType.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class ProductType
|
||||
{
|
||||
[Key]
|
||||
public string Name { get; set; }
|
||||
|
||||
public bool Active { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace PartSource.Data.Models
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class VehicleFitment
|
||||
{
|
||||
@@ -8,6 +10,7 @@
|
||||
|
||||
public string PartNumber { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public string NoteText { get; set; }
|
||||
|
||||
public int Year { get; set; }
|
||||
|
||||
@@ -31,12 +31,15 @@ namespace PartSource.Data.Nexpart
|
||||
public bool SecondaryDCF => true;
|
||||
|
||||
[XmlElement(Order = 6)]
|
||||
public Criterion[] Criterion { get; set; }
|
||||
public string[] AppOption { get; set; }
|
||||
|
||||
[XmlElement(Order = 7)]
|
||||
public string GroupBy { get; set; }
|
||||
public Criterion[] Criterion { get; set; }
|
||||
|
||||
[XmlElement(Order = 8)]
|
||||
public string GroupBy { get; set; }
|
||||
|
||||
[XmlElement(Order = 9)]
|
||||
public string QuestionOption { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user