Skip to content

Commit 87e110a

Browse files
committed
Make ColumnId fallback to ExpressionString
1 parent 7bee6a5 commit 87e110a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Build/CommonAssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
//
1616
// You can specify all the values or you can default the Revision and Build Numbers
1717
// by using the '*' as shown below:
18-
[assembly: AssemblyVersion("3.7.5")]
19-
[assembly: AssemblyFileVersion("3.7.5")]
18+
[assembly: AssemblyVersion("3.7.6")]
19+
[assembly: AssemblyFileVersion("3.7.6")]
2020
//[assembly: AssemblyInformationalVersion("2.5-filters")]

Griddly.Mvc/GriddlyColumn.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ public GriddlyColumn(LambdaExpression expression, string caption, string columnI
2020
{
2121
Expression = expression;
2222
Caption = caption;
23-
ColumnId = columnId != null ? columnId : expression != null ? GetIdFromExpression(expression) : Caption;
23+
24+
ColumnId = columnId != null ? columnId
25+
: expression != null ? GetIdFromExpression(expression)
26+
: !string.IsNullOrEmpty(ExpressionString) ? ExpressionString
27+
: Caption;
2428
}
2529

2630
string GetIdFromExpression(LambdaExpression expression)

0 commit comments

Comments
 (0)