Reputation: 2535
I use this method to query the database to get all the Valuations of a User. A table is returned with multiple rows and columns
public void UserValuationGet()
{
using (FormValueEntities db = new FormValueEntities())
{
//Query the database for the Valuation
var valuation = db.ValuationOfUserGet(userName);
}
}
How can I save the valaution in a Dataset or is there any good tutorial on how to use the Entity Framework Complex types?
Upvotes: 2
Views: 880
Reputation: 82096
There is no one-liner for doing this if that's what you are getting at, you would need to manually setup the DataSet & iterate over your query and map the results of your query into it.
Upvotes: 1