Let's say I have the following models:
public class Item
{
public int Id{ get; set; }
public ItemDescription ItemDescription{ get; set; }
}
public class ItemDescription
{
public int Id{ get; set; }
public int Revision{ get; set; }
public string Test{ get; set; }
}
I run the following in package manager:
Scaffold Controller Item
to generate some views and stuff ... but it seems that the scaffolder ignores any complex / non-scalar data types and therefore generates little-used views.
I am wondering if it is possible to teach a scaffolder to be a little smarter about things. Here is what I would like to do:
- scaffolder creates editor / display templates in a shared folder
- uses
EditorForto use these patterns
, , , scaffolder, , , _CreateOrEdit.cshtml "", , . , scaffolder , .
- ?