我想知道是否有人在运行时有另外的关于可修改表单的信息来源+如何存储它们。
我有什么:
我有3张桌子atm: 用户 (1对多) Raports (1对多) ThrashType
Raport课程:
public class Raport
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public Raport()
{
ThrashType = new HashSet<ThrashType>();
//Raport = new HashSet<Raport>();
}
[Key]
public int raport_id { get; set; }
public string who_did { get; set; }
public string where_from { get; set; }
public DateTime creation_time { get; set; }
public DateTime last_modyfication { get; set; }
public virtual ICollection<ThrashType> ThrashType { get; set; }
public virtual AspNetUsers AspNetUsers { get; set; }
}
ThrashType类:
public class ThrashType
{
[Key]
public int Key { get; set; }
//public string Name { get; set; }
//or type from dictionary that has around 100 words
public int Quantity { get; set; }
//public string CreatorsName { get; set; }
public virtual Raport Raport { get; set; }
}
我想要的是什么:
我读过的内容:
http://www.codeproject.com/Articles/32545/Exploring-Session-in-ASP-Net#26
http://adventuresdotnet.blogspot.com/2009/06/aspnet-moving-session-out-of-process.html
ASP.NET MVC - Adding form elements at runtime with javascript
还有更多,但不希望垃圾邮件发送到这个地方
我不知道的事情:
(我的意思是&#34;哪种方式最好&#34;)
a)在数据库中(稍后将通过一组数据进行分析)
查询我将根据客户会说什么发明。
b)如何
将其存储在SQL会话状态
我想做什么:
起初我以为我可以将表格中的信息存储为一个字符串,以后可以从alghoritm中读取(例如&#34; 10101011101&#34;并且位置会说出字典中的单词是什么类型),但仍然它缺乏数量。查询数量的字符串数据库似乎有点过分疯狂的想法。我正在考虑混合会话和数据库 - 用于重放工作的会话和用于存储可以分析的现成报告的数据库。无论如何,我需要你的意见和灵感,因为它会轻轻地杀了我。
即使是对这个问题的一部分的回答也是非常需要和适当的帮助。
谢谢!