What is the proper way to add a Field to a custom Part in code?
There are several similar questions that sort of deal with this issue like this one or this one offering a pretty hacky solution . None of the ones out there have a clear satisfactory answer, or an answer at all, or are asking quite the same thing to begin with. Record public class MyPartRecord : ContentPartRecord { public virtual Boolean Property1 { get; set; } public virtual string Property2 { get; set; } } Part public class MyPart : ContentPart<MyPartRecord> { public Boolean Property1 { get { return Record.Property1; } set { Record.Property1 = value; } } public string... } Migration