Quantcast
Channel: LINQ to XML
Viewing all articles
Browse latest Browse all 4

LINQ to XML

$
0
0

Hi,

 

Just few thoughts. This might help you also. If you are using query from database you can do the following:

 

1. Drag table to the .dbml file

2. In your class write a function or method similar to this.

 

LinqYourDataContext context = new LinqYourDataContext();

 

IQueryable<YourData> info = from y in context.YourData select y;

 

XmlWriter xml = new XmlWriter();

foreach (YourData data in info)

{

//start your xml conversion here...

}

 

Happy coding!!!

 

 


Viewing all articles
Browse latest Browse all 4


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>