I have a database table where the primary key is a combination of several fields:
Field1, Field2, Field3
If it was just one field (Field1) I could use
.DataSource(dataSource => dataSource
,Server()
.Model(model => model.Id(p => p.Field1))
)
but how do I set the datakeys/model id when there are several fields?
(If I set the grid to be .Selectable and if I don't set the model id, I get an error message saying that the DataKeys aren't set.)
Thanks.
Field1, Field2, Field3
If it was just one field (Field1) I could use
.DataSource(dataSource => dataSource
,Server()
.Model(model => model.Id(p => p.Field1))
)
but how do I set the datakeys/model id when there are several fields?
(If I set the grid to be .Selectable and if I don't set the model id, I get an error message saying that the DataKeys aren't set.)
Thanks.