This commit is contained in:
2018-12-18 20:27:31 +00:00
parent bb9af5a85a
commit 65253b35fd
5 changed files with 37 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ namespace AyaNova.Models
public virtual DbSet<Locale> Locale { get; set; }
public virtual DbSet<LocaleItem> LocaleItem { get; set; }
public virtual DbSet<DataFilter> DataFilter { get; set; }
public virtual DbSet<Tag> Tag { 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,21 @@
using System;
using System.Collections.Generic;
using AyaNova.Biz;
using System.ComponentModel.DataAnnotations;
namespace AyaNova.Models
{
public partial class Tag
{
public long Id { get; set; }
public uint ConcurrencyToken { get; set; }
[Required, MaxLength(255)]
public string Name { get; set; }//max 255 characters
public long RefCount { get; set; }
}
}