Search This Blog

Serenity Add New Column in Table and Display in Grid or Dialog



Add column in table manually or by migration. 

Add it in rowFields class at the bottom of classRow.cs
Add it in ClassRow class as a property in classRow.cs and also add [Column("Column_name_in_DB")] attribute.


To display it in grid, add it in classColumns.cs
To display it in dialog, add it in classForm.cs


Note: Newly added column was not a foreign key or primary key.

No comments:

Post a Comment

Web Statistics