Skip to content
Snippets Groups Projects
Commit e4bd9905 authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Update: Generated new classes for Resource table (coscine/issues#1556)

parent 40d44a79
No related branches found
No related tags found
3 merge requests!137Product/1470 migration for archiving,!136Sprint/2021 10,!135Update: Generated new classes for Resource table (coscine/issues#1556)
using System;
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
......@@ -58,9 +58,6 @@ namespace Coscine.Database.DataModel
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
if (!optionsBuilder.IsConfigured)
{
}
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
......@@ -560,6 +557,11 @@ namespace Coscine.Database.DataModel
entity.Property(e => e.ApplicationProfile).HasMaxLength(500);
entity.Property(e => e.Archived)
.IsRequired()
.HasMaxLength(255)
.HasDefaultValueSql("(N'0')");
entity.Property(e => e.DisplayName).HasMaxLength(25);
entity.Property(e => e.Keywords).HasMaxLength(1000);
......
......@@ -28,6 +28,7 @@ namespace Coscine.Database.DataModel
public string ApplicationProfile { get; set; }
public string FixedValues { get; set; }
public Guid? Creator { get; set; }
public string Archived { get; set; }
public virtual License License { get; set; }
public virtual ResourceType Type { get; set; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment