I have a job registration table and there are no entries in this table.
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 causes the following error:
A null value cannot be assigned to a member of type System.Decimal, which is a type with an invalid value
Please tell me how I can solve this problem, I prefer VB.NET code
source
share