Entity Enhancements
If you want some more info about detaching, cloning, and serialization, take a look at this quick overview!
Widget Connector | ||||||
---|---|---|---|---|---|---|
|
Detach
Inability to detach is what coders have complained about most when working with LINQ to SQL. Well, complain no more. PLINQO makes it easy to work with entities independent from a datacontext and attach to another when you are ready to save your changes. The following code is now possible thanks to PLINQO.
...
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); |
...