DataTables / Editor-NET

.NET Framework and .NET Core server-side libraries for Editor
Other
15 stars 12 forks source link

MJoin Model does not support nested types. #24

Open VictorioBerra opened 4 months ago

VictorioBerra commented 4 months ago

https://github.com/DataTables/Editor-NET/blob/master/DataTables-Editor-Server/MJoin.cs#L750

VS

https://github.com/DataTables/Editor-NET/blob/master/DataTables-Editor-Server/Editor.cs#L1394

Issue:

https://datatables.net/forums/discussion/78941/editor-net-mjoin-leftjoin-data#latest

This forces us to define the nested fields manually via:

.MJoin(new MJoin("InventoryServerWarranty")
    .Model<InventoryServerWarranty>()
    .Field(new Field("InventoryServerWarrantyProvider.Name"))
    .Field(new Field("InventoryServerWarrantyProvider.Description"))