This commit is contained in:
2022-12-22 01:47:53 +00:00
parent 943c400ab6
commit 68d00b6aa6
7 changed files with 759 additions and 5 deletions

View File

@@ -56,6 +56,8 @@ namespace Sockeye.Models
public virtual DbSet<IntegrationItem> IntegrationItem { get; set; }
public virtual DbSet<IntegrationLog> IntegrationLog { get; set; }
public virtual DbSet<License> License { get; set; }
//Note: had to add this constructor to work with the code in startup.cs that gets the connection string from the appsettings.json file
//and commented out the above on configuring
public AyContext(DbContextOptions<AyContext> options) : base(options)
@@ -114,7 +116,7 @@ namespace Sockeye.Models
//SERIALIZED OBJECTS
//
//modelBuilder.Entity<WorkOrder>().Property(z => z.Serial).UseIdentityByDefaultColumn();
modelBuilder.Entity<Case>().Property(z => z.CaseId).UseIdentityByDefaultColumn();
//## NOTE: if more added here then must also update globalbizsettingscontroller.seeds and client
//////////////////////////////////////////////////////////////