a nullable referent (another table) but if its null i want an empty referent (so i avoid null checking on the js UI) Referent = r.ReferentNavigation ?? new Referents(), how do that? it actually gives error: System.ArgumentException: 'Argument types do not match'
DB structure:
reports
- referents
- business
- ecc
referents
- rid
- firstname
- lastname
- ecc
Since i dont find a solution i just check if the object exists so initialize it in the UI, but if you know a better way let me know
Обсуждают сегодня