Store prerendered HTML from company description's markdown.

This commit is contained in:
2019-05-18 18:38:40 +01:00
parent 95b782488a
commit 40585b413e
10 changed files with 2693 additions and 1404 deletions

View File

@@ -28,6 +28,7 @@
// Copyright © 2003-2018 Natalia Portillo
*******************************************************************************/
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Cicm.Database.Models
@@ -38,6 +39,9 @@ namespace Cicm.Database.Models
public int CompanyId { get; set; }
[MaxLength(262144, ErrorMessage = "Description is too long")]
public string Text { get; set; }
[MaxLength(262144, ErrorMessage = "Description is too long")]
[DisplayName("HTML")]
public string Html { get; set; }
public virtual Company Company { get; set; }
}