Coding
LINQ Project from single item?
Is there a way to do something like this: db.People.Single(x => x.Id = 123).Select(x => new { x.FirstName, x.LastName }); (.Select is an extension method to IEnumerable) Or do I have to write it as: Read more…
Is there a way to do something like this: db.People.Single(x => x.Id = 123).Select(x => new { x.FirstName, x.LastName }); (.Select is an extension method to IEnumerable) Or do I have to write it as: Read more…
I have the following string variable ‘myJsonString’, which is a JSON-array as a string containing the following: [ ] I want to extract the value for id:myId3 = “iWantThisValueAsAString”. I’ve tried the following: JObject myJsonObject Read more…
I’m a CS student studying for the C# developer exam and I’m wondering how much LINQ is used in actual coding considering its overhead. I love LINQ and all its features, it’s filtering and data Read more…