In my controller i am trying to use include with EF4 to select related entities, but the lambda expression is throwing the following error,
i have the related entity de
If you are getting this error in Razor:
Ex:
@Html.RadioButtonFor(model => model.Security, "Fixed", new { @id = "securityFixed"})
C# doesn't know how to convert the string to valid bool or known type.
So change your string as below:
@Html.RadioButtonFor(model => model.Security, "True", new { @id = "securityFixed"})
or
@Html.RadioButtonFor(model => model.Security, "False", new { @id = "securityFixed"})