設說我有這樣的結構 public class Form
{
public List<Field> Fields { get; set; }
}
Field類可以是複合的,包括從所述Field類派生以及其他字段,所以我有某種分層結構的。該表格作爲固體文檔持久保存到RavenDB中,並且工作正常。我只是想知道從RavenDB獲得Form實例,我想讓Raven創建適當的類(類,這些類是
我需要通過幾個模型上的視圖進行一些計算。例如: class Teacher
include Mongoid::Document
has_many :students
end
class Student
include Mongoid::Document
belogns_to :teacher
field gold_stars, type:
我有套實體的所有的人都從抽象類派生 public abstract class NamedEntity : INamedEntity
{
#region Public Properties
public string Description { get; set; }
public string Id { get; set; }
public str