【发布时间】:2014-09-23 23:58:41
【问题描述】:
我使用我的域项目中的实体框架创建了实体类
using System;
using System.Collections.Generic;
public partial class Test
{
public int Id { get; set; }
public int ExamID { get; set; }
public string TestName { get; set; }
public string StartDescription { get; set; }
public string EndDescription { get; set; }
}
在我的 MVC 应用程序中,我正在创建一个在我的视图中使用的视图模型
public class TestViewModel
{
public Test Test { get; set; }
}
现在我想创建与“StartDescription”和“EndDescription”相关的字段,因为我正在尝试使用 TinyMCE。
现在的问题是“[AllowHtml]”属性在 mvc 中,但我的真实实体在其他项目中
我正在学习本教程。 http://www.codeproject.com/Articles/674754/TinyMCE-and-ASP-NET-MVC-advanced-features
【问题讨论】:
标签: c# asp.net-mvc entity-framework asp.net-mvc-4 tinymce