Questions et réponses pour le linq :

Language Integrated Query (LINQ) is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages. Please consider using more detailed tags when appropriate, for example [linq-to-sql], [linq-to-entities] / [entity-framework], or [plinq]

0
votes
Je travaille sur une instruction LINQ. J'ai une table de villes où les enregistrements ont un countryId ou un stateId . Je voudrais simplement écrire une ...

0
votes
Ici, j'ai 2 listes du même type d'objet. List mergedSet = [{old1, null}, {old2, new2}, {old3, new3}, {null, new4}]; Je souhaite fusionner les deux listes, en conservant &eacut ...

0
votes
var allBirthdate = await _Repository.GetAll().Where(x => x.DateOfBirth.HasValue). Select(x => x.DateOfBirth.Value).ToListAsync(); ...

0
votes
XDocument xdoc = new XDocument.Load(xmlPath); List<XElement> ruleGroupList = xdoc.Descendants("Rule").ToList(); foreach (var item in ruleGroupList) { if (item.Descendan ...