Entity Framework: What is use /Meaning of (?) question mark

c# entity-framework entity-framework-6 linq

Question

I'm new to my project, and to manage the database data, they utilised LINQ and Entity Framework. I'm not sure why the get() function is followed by a question mark (?) in the following query. Is it OK to use the (?) mark in the manner shown below? If so, do provide a detailed explanation.

 uOW.ApplicationDetailsRepository.Get()?
                    .Where (x=>x.Name=="SomeConditions").Tolist();
1
3
5/4/2018 6:17:55 AM

Accepted Answer

When accompanied by a period, the question mark is used as follows:?. The Null-conditional Operator is what it is known as. The check is fornull before to trying the remainder of the sentence.

Here is a detailed reference explanation.

7
5/4/2018 5:43:16 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow