M
Marc S
I have a LINQ class that I can use to query data from my database. I
want to query the data directly into an XML string without defining
each field.
If I have a table Names like the following:
Table: Names
Id int,
LastName varchar(32),
FirstName varchar(32)
Then I have a LINQ query that queries my DataContext:
var qry = from n in context.Names
where n.Id == pId
select n ;
I want to query the context as if to say
"select * from Names where Id = pId for XML AUTO"
If there a way to do that without manually creating an XElement?
want to query the data directly into an XML string without defining
each field.
If I have a table Names like the following:
Table: Names
Id int,
LastName varchar(32),
FirstName varchar(32)
Then I have a LINQ query that queries my DataContext:
var qry = from n in context.Names
where n.Id == pId
select n ;
I want to query the context as if to say
"select * from Names where Id = pId for XML AUTO"
If there a way to do that without manually creating an XElement?