...
Code Block | ||
---|---|---|
| ||
Create Procedure [dbo].[ReturnMultiplResultSets] As Select * From [User] Select * From [Task] |
Now we have a stored procedure returning multiple result sets and here is how PLINQO will handle it.
...
Code Block | ||
---|---|---|
| ||
Task task = context.Task.GetByKey(1); string xml = task.ToXml(); byte[] b = task.ToBinary(); |
Deserialization is also made simple with PLINQO
Code Block | ||
---|---|---|
| ||
task = Task.FromXml(xml); task = Task.FromBinary(b); |