Click here to Skip to main content
11,429,777 members (75,106 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Silverlight
Hi all,

I have result

<Main>
  <StudentDetails>
    <StudentName>Ravi</StudentName>
    <RegNo>1707166</RegNo>
    <Marks1>96</Marks1>
    <Marks2>96</Marks2>
    <Marks3>96</Marks3>
    <Marks4>96</Marks4>
    <Total>384</Total>
    <Avg>96</Avg>
  </StudentDetails>
  <StudentDetails>
    <StudentName>Manoj</StudentName>
    <RegNo>1707168</RegNo>
    <Marks1>98</Marks1>
    <Marks2>98</Marks2>
    <Marks3>98</Marks3>
    <Marks4>98</Marks4>
    <Total>392</Total>
    <Avg>98</Avg>
  </StudentDetails>
</Main>

using linq query how can I delete Manoj record and how can I update the Ravi Record?

let me know
Posted 1-Aug-12 5:35am
U@0071K
Edited 1-Aug-12 5:38am
Malli_S26.7K
v2
Comments
Nueman at 1-Aug-12 14:27pm
   
I typed "linq queries to update xml" in Google and got a boatload of hits.

If you have CP do your homework, how will you learn?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You use Linq to query data not for CRUD operations. If you want to do CRUD operations you must do it with a Data Model.

As Neuman said you can search it!

Regards
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.150428.2 | Last Updated 1 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100