This commit is contained in:
2020-10-29 22:37:26 +00:00
parent e5ee0f64aa
commit 273fa49e78
6 changed files with 43 additions and 26 deletions

View File

@@ -70,6 +70,7 @@ namespace AyaNova.Models
public virtual DbSet<Logo> Logo { get; set; }
public virtual DbSet<Report> Report { get; set; }
public virtual DbSet<DashboardView> DashboardView { 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

View File

@@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
namespace AyaNova.Models
{
public class DashboardView
{
public DashboardView(){
View="[]";//empty view by default
}
public long Id { get; set; }
public uint Concurrency { get; set; }
[Required]
public long UserId { get; set; }
[Required]
public string View { get; set; }//JSON Dashboard registry view object
}
}

View File

@@ -1,10 +1,3 @@
using System;
using System.Collections.Generic;
using AyaNova.Biz;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace AyaNova.Models
{