SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 524 | Next

Scott Klein

"Professional LINQ"


LINQ to XSD Overview
LINQ to XSD is a new technology aimed at enhancing the great LINQ to XML technology by
providing .NET developers support for typed XML programming. For example, in typical LINQ
to XML programming, you would work with an XML tree as follows:
var total = (from item in SalesOrderHeader.Elements("Item")
select (double)item.Element("UnitPrice")
* (int)item.Element("OrderQuantity")
).Sum();
Appendix C: LINQ to XSD
In this example, the developer is working with untyped XML, accessing the elements and attributes of
the XML directly. However, LINQ to XSD lets you work with typed XML, like this:
var total = (from item in SalesOrderHeader.Item
select item.UnitPrice * item.OrderQuantity
).Sum();
Working with typed XML is made possible by XML schemas that are mapped automatically to defined
object models. Through this mapping XML data can be manipulated just like other object-oriented
models. The result is that you are working directly with classes that can enforce validation through
the use of the schema, plus you are working with XML objects generated from the XML schemas that
provide a much more efficient XML development platform.


Pages:
512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6