I have a Job Register Table and that table doesn't have any records.
This is my LINQ code:
Dim QRecordCount = (From LC In CntxtJobDetails.JobRegistrations _
Where LC.JobCode <> 0 _
Select LC.JobCode).Max() + 1
When I execute the code above it gives me the following error:
The null value cannot be assigned to a member with type System.Decimal which is a non-nullable value type
Please tell me how can I solve this issue, I prefer VB.NET Code