Pro LINQ. Language Integrated Query in C# Apress. Adam Freeman and Joseph C. Rattz, Jr.

Size: px
Start display at page:

Download "Pro LINQ. Language Integrated Query in C# Apress. Adam Freeman and Joseph C. Rattz, Jr."

Transcription

1 Pro LINQ Language Integrated Query in C# 2010 Adam Freeman and Joseph C. Rattz, Jr. Apress

2 Contents Contents at a Glance Contents About the Author About the Technical Reviewer Acknowledgments Part 1: Pro LINQ: Language Integrated Query IV vi xx xxi xxii in C# Chapter 1: Hello LINQ 3 A Paradigm Shift 3 Query XML 4 Query a SQL Server Database 5 Introduction 7 LINQ Is About Data Queries 7 How to Obtain LINQ 8 LINQ Is Not Just for Queries 8 Tips to Get You Started 12 Use the var Keyword When Confused 12 Use the Cast or OfType Operators for Legacy Collections 14 The OfType Operator versus the Cast Operator 15 Don't Assume a Query Is Bug-Free 15 Take Advantage of Deferred Queries 16 Use the DataContext Log 17 Use the LINQ Forum 18 Summary 18 vi

3 Chapter 2: C# Language Enhancements for LINQ 21 C# Language Additions 21 Lambda Expressions 22 Expression Trees 27 Keyword var, Object Initialization, and Anonymous Types 28 Extension Methods 33 Partial Methods 39 Query Expressions 41 Summary 52 Part 2: LINQ to Objects 55 Chapter 3: LINQ to Objects Introduction 57 LINQ to Objects Overview 57 IEnumerable<T>, Sequences, and the Standard Query Operators 58 Returning IEnumerable<T>, Yielding, and Deferred Queries 59 Func Delegates 62 The Standard Query Operators Alphabetical Cross-Reference 64 A Tale of Two Syntaxes 66 Summary 66 Chapter 4: Deferred Operators 69 Referenced Namespaces 69 Referenced Assemblies 69 Common Classes 69 The Deferred Operators by Purpose 71 Restriction 71 Projection 74 Partitioning 85 Concatenation 93 Ordering 96 Join 116 vii

4 Grouping Set 126 Conversion 133 Element 140 Generation 145 Summary 148 Chapter 5: Nondeferred Operators 151 Referenced Namespaces 151 Common Classes 151 The Nondeferred Operators by Purpose 154 Conversion 155 Equality 168 Element 172 Quantifiers 187 Aggregate 193 Summary 209 Part 3: LINQ to XML 211 Chapter 6: LINQ to XML Introduction 213 Introduction 215 Cheating the W3C DOM XML API 216 Summary 217 Chapter 7: The LINQ to XML API 219 Referenced Namespaces 219 Significant API Design Enhancements 219 XML Tree Construction Simplified with Functional Construction 220 Document Centricity Eliminated in Favor of Element Centricity 222 Names, Namespaces, and Prefixes 224 Node Value Extraction 227 The LINQ to XML Object Model 230

5 Deferred Query Execution, Node Removal, and the Halloween Problem 231 XML Creation 234 Creating Elements with XEIement 234 Creating Attributes with XAttribute 237 Creating Comments with XComment 238 Creating Containers with XContainer 238 Creating Declarations with XDeclaration 239 Creating Document Types with XDocumentType 240 Creating Documents with XDocument 241 Creating Names with XName 242 Creating Namespaces with XNamespace 243 Creating Nodes with XNode 243 Creating Processing Instructions with XProcessinglnstruction 243 Creating Streaming Elements with XStreamingElement 246 Creating Text with XText 247 Creating CData with XCData 248 XML Output 248 Saving with XDocument.Save() 248 Saving with XEIement.Save() 250 XML Input 251 Loading with XDocument.Load() 251 Loading with XEIement.Load() 253 Parsing with XDocument.Parse() or XEIement.Parse() 254 XML Traversal 254 Traversal Properties 255 Traversal Methods 260 XML Modification 276 Adding Nodes 276 Deleting Nodes 281 Updating Nodes 284 ix

6 XEIement.SetElementValue() on Child XEIement Objects 289 XML Attributes 290 Attribute Creation 291 Attribute Traversal 291 Attribute Modification 295 XML Annotations 300 Adding Annotations with XObject.AddAnnotation() 300 Accessing Annotations with XObject.Annotation() or XObject.Annotations() 300 Removing Annotations with XObject.RemoveAnnotations() 301 Annotations Example 301 XML Events 304 XObjectChanging 305 XObjectChanged 305 A Couple of Event Examples 306 Trick or Treat, or Undefined? 310 Summary 310 Chapter 8: LINQ to XML Operators 313 Introduction to LINQ to XML Operators 313 Ancestors 314 Prototypes 314 Examples 314 AncestorsAndSelf 319 Prototypes 319 Examples 319 Attributes 322 Prototypes 322 Examples 322 DescendantNodes 324 Prototypes 324 Examples 325

7 DescendantNodesAndSelf 326 Prototypes 326 Examples 327 Descendants 328 Prototypes 328 Examples 329 DescendantsAndSelf 331 Prototypes 331 Examples 331 Elements 334 Prototypes 334 Examples 334 InDocumentOrder 336 Prototypes 337 Examples 337 Nodes 338 Prototypes 338 Examples 339 Remove.340 Prototypes 340 Examples 340 Summary 343 Chapter 9: Additional XML Capabilities 345 Referenced Namespaces, 345 Queries 346 No Reaching 346 A Complex Query 348 Transformations 355 Transformations Using XSLT 355 Transformations Using Functional Construction 357

8 Tips 359 Validation The Extension Methods 366 Prototypes 367 Obtaining an XML Schema 368 Examples XPath Prototypes Examples 384 Summary 384 Part 4: LINQ to DataSet Chapter 10: LINQ to DataSet Operators 389 Assembly References 390 Referenced Namespaces 390 Common Code for the Examples 390 DataRow Set Operators 392 Distinct 392 Except 396 Intersect 399 Union 401 SequenceEqual 403 DataRow Field Operators 405 Field<T> 410 SetField<T> 415 DataTable Operators 419 AsEnumerable 419 CopyToDataTable<DataRow> 419 Summary 425 Chapter 11: Additional DataSet Capabilities 427 Required Namespaces, 427 xii

9 Typed DataSets 427 Putting It All Together 429 Summary 432 Part 5: LINQ to SQL 435 Chapter 12: LINQ to SQL Introduction. 437 Introducing LINQ to SQL 438 The DataContext 439 Entity Classes 440 Associations 440 Concurrency Conflict Detection 441 Concurrency Conflict Resolution 441 Prerequisites for Running the Examples 442 Obtaining the Appropriate Version of the Northwind Database 442 Generating the Northwind Entity Classes 442 Generating the Northwind XML Mapping File 444 Using the LINQ to SQL API 444 IQueryable<T> 444 Some Common Methods 444 GetStringFromDb() 445 ExecuteStatementlnDbO 446 Summary 447 Chapter 13: LINQ to SQL Tips and Tools 449 Introduction to LINQ to SQL Tips and Tools 449 Tips 449 Use the DataContextlog Property 450 Use the GetChangeSet() Method 451 Consider Using Partial Classes or Mapping Files 451 Consider Using Partial Methods 451 Tools 452 SQLMetal 452 xiii

10 473 - The Object Relational Designer 41)0 Use SQLMetal and the O/R Designer Together 472 Summary Chapter 14: LINQ to SQL Database Operations 475 Prerequisites for Running the Examples 475 Some Common Methods 475 Using the LINQ to SQL API 476 Standard Database Operations 476 Inserts 4?6 Queries 480 Updates 506 Deletes 510 Overriding Database Modification Statements 513 Overriding the Insert Method 513 Overriding the Update Method 514 Overriding the Delete Method 514 Example 514 Overriding in the Object Relational Designer 517 Considerations 517 SQL Translation 517 Summary 520 Chapter 15: LINQ to SQL Entity Classes 521 Prerequisites for Running the Examples 521 Entity Classes 521 Creating Entity Classes 521 XML External Mapping File Schema 552 Projecting into Entity Classes vs. Nonentity Classes 552 Extending Entity Classes with Partial Methods 558 Important System.Data.Linq API Classes 560 xiv

11 EntitySet<T> 560 EntityRef<T> 560 Table<T> 563 lexecuteresult 564 ISingleResult<T> 565 IMultipleResults 565 Summary 567 Chapter 16: The LINQ to SQL DataContext 569 Prerequisites for Running the Examples 569 Some Common Methods 569 Using the LINQ to SQL API 569 [Your]DataContext Class 569 The DataContext Class 570 The DataContext Class Implements IDisposable 573 Primary Purposes 573 The Data Context Lifetime 580 DataContext() and [Your]DataContext() 580 SubmitChangesO 594 DatabaseExists() 602 CreateDatabase() 603 DeleteDatabase() 604 CreateMethodCallQuery() 605 ExecuteQuery() 607 Translate!) 610 ExecuteCommandO 612 ExecuteMethodCall() 613 GetCommand() 621 GetChangeSetO 623 GetTable() 625 RefreshO 626 Summary 634 XV

12 Chapter 17: LINQ to SQL Concurrency Conflicts Prerequisites for Running the Examples 635 Some Common Methods 635 Using the LINQ to SQL API 635 Concurrency Conflicts 635 Optimistic Concurrency 636 Pessimistic Concurrency 647 An Alternative Approach for Middle Tiers and Servers 650 Summary Chapter 18: Additional UNQ to SQL Capabilities 653 Prerequisites for Running the Examples 653 Using the LINQ to SQL API 653 Using the LINQ to XML API 653 Database Views 653 Entity Class Inheritance 655 Transactions 661 Summary 663 Part 6: LINQ to Entities 665 Chapter 19: LINQ to Entities Introduction 667 Introducing LINQ to Entities 668 The ObjectContext 669 Entity Classes 669 Associations 670 Prerequisites for Running the Examples 670 Obtaining the Appropriate Version of the Northwind Database 670 Generating the Northwind Entity Data Model 670 Using the LINQ to Entities API 674 IQueryable<T> 674 Some Common Methods, 675 xvi

13 GetStringFromDb() 675 ExecuteStatementlnDb() 676 Summary 677 Chapter 20: LINQ to Entities Operations. 679 Prerequisites for Running the Examples 679 Some Common Methods 679 Standard Database Operations 680 Inserts 680 Queries 687 Updates 704 Deletes Managing Concurrency 715 Enabling Concurrency Checks 716 Handling Concurrency Conflicts 717 Summary 722 Chapter 21: LINQ to Entities Classes 723 Prerequisites for Running the Examples 723 The ObjectContext Class 723 Constructor 724 DatabaseExists() 726 DeleteDatabase() 726 CreateDatabase() 727 SaveChanges() 727 RefreshO 728 AddObject() 729 CreateObject() 730 DeleteObject() 731 EntityObject 732 Constructor 732 Factory Method 733 xvii

14 Primitive Properties 735 Navigation Properties 737 EntityReference 740 Load() 740 Value 741 EntityCollection 741 AddO 741 Remove() 743 ClearO 745 ContainsO 745 Load() 747 Count 747 Summary 748 Part 7: Parallel LINQ 749 Chapter 22: Parallel LINQ Introduction 751 Introducing Parallel LINQ 751 Parallel LINQ Is for Objects 756 Using the LINQ to Entities API 756 Summary 756 Chapter 23: Using Parallel LINQ 757 Creating a Parallel LINQ Query 757 Preserving Result Ordering 760 Controlling Parallelism 763 Forcing Parallel Execution 763 Limiting the Degree of Parallelism 764 Dealing with Exceptions 764 Queries Without Results 768 Creating Ranges and Repetitions 770 Summary 771 xviii

15 Chapter 24: Parallel LINQ Operators.773 ParallelQuery Creation Operators 773 AsParallel 773 Range 777 Repeat 778 Empty 779 Execution Control Operators 779 AsOrdered 779 AsUnordered 782 AsSequential 783 AsEnumerable 784 WithDegreeOfParallelism 785 WithExecutionMode 786 WithMergeOptions 787 Conversion Operators 790 Cast 790 OtType 791 The ForAII Operator 792 Prototypes 792 Examples 792 Summary 793 Index 795 xix

Programming Microsoft LINQ in

Programming Microsoft LINQ in Microsoft Programming Microsoft LINQ in Framework 4 Microsoft NET Paolo Pialorsi Marco Russo Table of Contents Preface Acknowledgments Introduction xvii xix xxi Part I LINQ Foundations 1 LINQ Introduction

More information

Microsoft. Microsoft Visual C# Step by Step. John Sharp

Microsoft. Microsoft Visual C# Step by Step. John Sharp Microsoft Microsoft Visual C#- 2010 Step by Step John Sharp Table of Contents Acknowledgments Introduction xvii xix Part I Introducing Microsoft Visual C# and Microsoft Visual Studio 2010 1 Welcome to

More information

Contents. LINQ for Visual C# 2008 i

Contents. LINQ for Visual C# 2008 i Contents Chapter 1: LINQ to Objects...1 Introduction...1 A Simple C# 3.0 LINQ to Objects Program...1 Extension Methods...3 Lambda Expressions...5 Expression Trees...6 Object Initialization Expressions...7

More information

CHAPTER 1: INTRODUCING C# 3

CHAPTER 1: INTRODUCING C# 3 INTRODUCTION xix PART I: THE OOP LANGUAGE CHAPTER 1: INTRODUCING C# 3 What Is the.net Framework? 4 What s in the.net Framework? 4 Writing Applications Using the.net Framework 5 What Is C#? 8 Applications

More information

Microsoft Visual C# Step by Step. John Sharp

Microsoft Visual C# Step by Step. John Sharp Microsoft Visual C# 2013 Step by Step John Sharp Introduction xix PART I INTRODUCING MICROSOFT VISUAL C# AND MICROSOFT VISUAL STUDIO 2013 Chapter 1 Welcome to C# 3 Beginning programming with the Visual

More information

"Charting the Course... Java Programming Language. Course Summary

Charting the Course... Java Programming Language. Course Summary Course Summary Description This course emphasizes becoming productive quickly as a Java application developer. This course quickly covers the Java language syntax and then moves into the object-oriented

More information

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix PGJC4_JSE8_OCA.book Page ix Monday, June 20, 2016 2:31 PM Contents Figures Tables Examples Foreword Preface xix xxi xxiii xxvii xxix 1 Basics of Java Programming 1 1.1 Introduction 2 1.2 Classes 2 Declaring

More information

CHAPTER 1: INTRODUCTION TO THE IDE 3

CHAPTER 1: INTRODUCTION TO THE IDE 3 INTRODUCTION xxvii PART I: IDE CHAPTER 1: INTRODUCTION TO THE IDE 3 Introducing the IDE 3 Different IDE Appearances 4 IDE Configurations 5 Projects and Solutions 6 Starting the IDE 6 Creating a Project

More information

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery. HTML5/CSS3/JavaScript Programming Course Summary Description This class is designed for students that have experience with basic HTML concepts that wish to learn about HTML Version 5, Cascading Style Sheets

More information

foreword to the first edition preface xxi acknowledgments xxiii about this book xxv about the cover illustration

foreword to the first edition preface xxi acknowledgments xxiii about this book xxv about the cover illustration contents foreword to the first edition preface xxi acknowledgments xxiii about this book xxv about the cover illustration xix xxxii PART 1 GETTING STARTED WITH ORM...1 1 2 Understanding object/relational

More information

"Charting the Course... MOC A Developing Microsoft SQL Server 2012 Databases. Course Summary

Charting the Course... MOC A Developing Microsoft SQL Server 2012 Databases. Course Summary Course Summary Description This 5-day instructor-led course introduces SQL Server 2012 and describes logical table design, indexing and query plans. It also focuses on the creation of database objects

More information

Pro ASP.NET MVC 2 Framework

Pro ASP.NET MVC 2 Framework Pro ASP.NET MVC 2 Framework Second Edition Steven Sanderson Apress TIB/UB Hannover 89 133 297 713 Contents at a Glance Contents About the Author About the Technical Reviewers Acknowledgments Introduction

More information

C# in Depth THIRD EDITION

C# in Depth THIRD EDITION C# in Depth THIRD EDITION JON SKEET MANNING SHELTER ISLAND brief contents PART 1 PREPARING FOR THE JOURNEY...1 1 The changing face of C# development 3 2 Core foundations: building on C# 1 29 PART 2 C#

More information

Learning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo

Learning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo Learning C# 3.0 Jesse Liberty and Brian MacDonald O'REILLY Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo Table of Contents Preface xv 1. C# and.net Programming 1 Installing C# Express 2 C# 3.0

More information

"Charting the Course... Agile Database Design Techniques Course Summary

Charting the Course... Agile Database Design Techniques Course Summary Course Summary Description This course provides students with the skills necessary to design databases using Agile design techniques. It is based on the Scott Ambler book Agile Database Techniques: Effective

More information

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS Contents Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS 1.1. INTRODUCTION TO COMPUTERS... 1 1.2. HISTORY OF C & C++... 3 1.3. DESIGN, DEVELOPMENT AND EXECUTION OF A PROGRAM... 3 1.4 TESTING OF PROGRAMS...

More information

EF6 - Version: 1. Entity Framework 6

EF6 - Version: 1. Entity Framework 6 EF6 - Version: 1 Entity Framework 6 Entity Framework 6 EF6 - Version: 1 4 days Course Description: Entity Framework is the new ORM and data access technology introduced by Microsoft. Entity framework provides

More information

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio Introduction XXV Part I: C# Fundamentals 1 Chapter 1: The.NET Framework 3 What s the.net Framework? 3 Common Language Runtime 3.NET Framework Class Library 4 Assemblies and the Microsoft Intermediate Language

More information

Beginning ASP.NET. 4.5 in C# Matthew MacDonald

Beginning ASP.NET. 4.5 in C# Matthew MacDonald Beginning ASP.NET 4.5 in C# Matthew MacDonald Contents About the Author About the Technical Reviewers Acknowledgments Introduction xxvii xxix xxxi xxxiii UPart 1: Introducing.NET. 1 & Chapter 1: The Big

More information

C# Programming: From Problem Analysis to Program Design. Fourth Edition

C# Programming: From Problem Analysis to Program Design. Fourth Edition C# Programming: From Problem Analysis to Program Design Fourth Edition Preface xxi INTRODUCTION TO COMPUTING AND PROGRAMMING 1 History of Computers 2 System and Application Software 4 System Software 4

More information

Practical Database Programming with Visual Basic.NET

Practical Database Programming with Visual Basic.NET Practical Database Programming with Visual Basic.NET IEEE Press 445 Hoes Lane Piscataway, NJ 08854 IEEE Press Editorial Board Lajos Hanzo, Editor in Chief R. Abari M. El-Hawary S. Nahavandi J. Anderson

More information

Business Intelligence Roadmap HDT923 Three Days

Business Intelligence Roadmap HDT923 Three Days Three Days Prerequisites Students should have experience with any relational database management system as well as experience with data warehouses and star schemas. It would be helpful if students are

More information

COPYRIGHTED MATERIAL. Contents. Part I: Introduction 1. Chapter 1: What Is XML? 3. Chapter 2: Well-Formed XML 23. Acknowledgments

COPYRIGHTED MATERIAL. Contents. Part I: Introduction 1. Chapter 1: What Is XML? 3. Chapter 2: Well-Formed XML 23. Acknowledgments Acknowledgments Introduction ix xxvii Part I: Introduction 1 Chapter 1: What Is XML? 3 Of Data, Files, and Text 3 Binary Files 4 Text Files 5 A Brief History of Markup 6 So What Is XML? 7 What Does XML

More information

"Charting the Course... MOC A Developing Data Access Solutions with Microsoft Visual Studio Course Summary

Charting the Course... MOC A Developing Data Access Solutions with Microsoft Visual Studio Course Summary Description Course Summary In this course, experienced developers who know the basics of data access (CRUD) in Windows client and Web application environments will learn to optimize their designs and develop

More information

"Charting the Course to Your Success!" MOC D Querying Microsoft SQL Server Course Summary

Charting the Course to Your Success! MOC D Querying Microsoft SQL Server Course Summary Course Summary Description This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the foundation

More information

XML databases. Jan Chomicki. University at Buffalo. Jan Chomicki (University at Buffalo) XML databases 1 / 9

XML databases. Jan Chomicki. University at Buffalo. Jan Chomicki (University at Buffalo) XML databases 1 / 9 XML databases Jan Chomicki University at Buffalo Jan Chomicki (University at Buffalo) XML databases 1 / 9 Outline 1 XML data model 2 XPath 3 XQuery Jan Chomicki (University at Buffalo) XML databases 2

More information

"Charting the Course... MOC C: Querying Data with Transact-SQL. Course Summary

Charting the Course... MOC C: Querying Data with Transact-SQL. Course Summary Course Summary Description This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can be taught as a course to students requiring the knowledge

More information

Programming C# 5.0. Ian Griffiths O'REILLY' Beijing Cambridge * Farnham Kbln Sebastopol Tokyo

Programming C# 5.0. Ian Griffiths O'REILLY' Beijing Cambridge * Farnham Kbln Sebastopol Tokyo Programming C# 5.0 Ian Griffiths O'REILLY' Beijing Cambridge * Farnham Kbln Sebastopol Tokyo Preface xvii 1. Introducing C# 1 Why C#? 1 Why Not C#? 3 C#'s Defining Features 5 Managed Code and the CLR 7

More information

C# 6.0 in a nutshell / Joseph Albahari & Ben Albahari. 6th ed. Beijin [etc.], cop Spis treści

C# 6.0 in a nutshell / Joseph Albahari & Ben Albahari. 6th ed. Beijin [etc.], cop Spis treści C# 6.0 in a nutshell / Joseph Albahari & Ben Albahari. 6th ed. Beijin [etc.], cop. 2016 Spis treści Preface xi 1. Introducing C# and the.net Framework 1 Object Orientation 1 Type Safety 2 Memory Management

More information

Introduction to PTC Windchill ProjectLink 11.0

Introduction to PTC Windchill ProjectLink 11.0 Introduction to PTC Windchill ProjectLink 11.0 Overview Course Code Course Length TRN-4756-T 8 Hours In this course, you will learn how to participate in and manage projects using Windchill ProjectLink

More information

Acknowledgments Introduction. Part I: Programming Access Applications 1. Chapter 1: Overview of Programming for Access 3

Acknowledgments Introduction. Part I: Programming Access Applications 1. Chapter 1: Overview of Programming for Access 3 74029ftoc.qxd:WroxPro 9/27/07 1:40 PM Page xiii Acknowledgments Introduction x xxv Part I: Programming Access Applications 1 Chapter 1: Overview of Programming for Access 3 Writing Code for Access 3 The

More information

XML: Extensible Markup Language

XML: Extensible Markup Language XML: Extensible Markup Language CSC 375, Fall 2015 XML is a classic political compromise: it balances the needs of man and machine by being equally unreadable to both. Matthew Might Slides slightly modified

More information

"Charting the Course... MOC Programming in C# with Microsoft Visual Studio Course Summary

Charting the Course... MOC Programming in C# with Microsoft Visual Studio Course Summary Course Summary NOTE - The course delivery has been updated to Visual Studio 2013 and.net Framework 4.5! Description The course focuses on C# program structure, language syntax, and implementation details

More information

Apex TG India Pvt. Ltd.

Apex TG India Pvt. Ltd. (Core C# Programming Constructs) Introduction of.net Framework 4.5 FEATURES OF DOTNET 4.5 CLR,CLS,CTS, MSIL COMPILER WITH TYPES ASSEMBLY WITH TYPES Basic Concepts DECISION CONSTRUCTS LOOPING SWITCH OPERATOR

More information

Practical Database Programming with Visual Basic.NET

Practical Database Programming with Visual Basic.NET Practical Database Programming with Visual Basic.NET IEEE Press 445 Hoes Lane Piscataway, NJ 08854 IEEE Press Editorial Board Lajos Hanzo, Editor in Chief R. Abari M. El-Hawary S. Nahavandi J. Anderson

More information

Variable Scope The Main() Function Struct Functions Overloading Functions Using Delegates Chapter 7: Debugging and Error Handling Debugging in Visual

Variable Scope The Main() Function Struct Functions Overloading Functions Using Delegates Chapter 7: Debugging and Error Handling Debugging in Visual Table of Contents Title Page Introduction Who This Book Is For What This Book Covers How This Book Is Structured What You Need to Use This Book Conventions Source Code Errata p2p.wrox.com Part I: The OOP

More information

Pro JPA 2. Mastering the Java Persistence API. Apress* Mike Keith and Merrick Schnicariol

Pro JPA 2. Mastering the Java Persistence API. Apress* Mike Keith and Merrick Schnicariol Pro JPA 2 Mastering the Java Persistence API Mike Keith and Merrick Schnicariol Apress* Gootents at a Glance g V Contents... ; v Foreword _ ^ Afooyt the Author XXj About the Technical Reviewer.. *....

More information

"Charting the Course to Your Success!" MOC B Programming in C# Course Summary

Charting the Course to Your Success! MOC B Programming in C# Course Summary Course Summary Description This training course teaches developers the programming skills that are required for developers to create Windows applications using the C# language. During their five days in

More information

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17 List of Programs xxv List of Figures xxix List of Tables xxxiii Preface to second version xxxv PART 1 Structured Programming 1 1 Getting started 3 1.1 Programming 3 1.2 Editing source code 5 Source code

More information

Acknowledgments Introduction. Chapter 1: Introduction to Access 2007 VBA 1. The Visual Basic Editor 18. Testing Phase 24

Acknowledgments Introduction. Chapter 1: Introduction to Access 2007 VBA 1. The Visual Basic Editor 18. Testing Phase 24 Acknowledgments Introduction Chapter 1: Introduction to Access 2007 VBA 1 What Is Access 2007 VBA? 1 What s New in Access 2007 VBA? 2 Access 2007 VBA Programming 101 3 Requirements-Gathering Phase 3 Design

More information

Kalaivani Ananthan Version 2.0 October 2008 Funded by the Library of Congress

Kalaivani Ananthan Version 2.0 October 2008 Funded by the Library of Congress RUTGERS UNIVERSITY LIBRARIES OpenMIC User Manual Bibliographic Utility for analog and digital objects Kalaivani Ananthan Version 2.0 October 2008 Funded by the Library of Congress Table of Contents I.

More information

Microsoft Visual Studio 2010

Microsoft Visual Studio 2010 Microsoft Visual Studio 2010 A Beginner's Guide Joe Mayo Mc Grauu Hill New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto Contents ACKNOWLEDGMENTS

More information

7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML

7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML 7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML is a markup language,

More information

The C# Programming Language. Overview

The C# Programming Language. Overview The C# Programming Language Overview Microsoft's.NET Framework presents developers with unprecedented opportunities. From web applications to desktop and mobile platform applications - all can be built

More information

object/relational persistence What is persistence? 5

object/relational persistence What is persistence? 5 contents foreword to the revised edition xix foreword to the first edition xxi preface to the revised edition xxiii preface to the first edition xxv acknowledgments xxviii about this book xxix about the

More information

Pro Business Applications with Silverlight 4

Pro Business Applications with Silverlight 4 Pro Business Applications with Silverlight 4 Chris Anderson Apress* Contents at a Glance Contents About the Author Acknowledgments iv v xix xx a Chapter 1: Introduction 1 Who This Book Is For 1 About This

More information

Introduction to PTC Windchill MPMLink 11.0

Introduction to PTC Windchill MPMLink 11.0 Introduction to PTC Windchill MPMLink 11.0 Overview Course Code Course Length TRN-4754-T 16 Hours In this course, you will learn how to complete basic Windchill MPMLink functions. You will learn about

More information

Table of Contents Chapter 1 - Introduction Chapter 2 - Designing XML Data and Applications Chapter 3 - Designing and Managing XML Storage Objects

Table of Contents Chapter 1 - Introduction Chapter 2 - Designing XML Data and Applications Chapter 3 - Designing and Managing XML Storage Objects Table of Contents Chapter 1 - Introduction 1.1 Anatomy of an XML Document 1.2 Differences Between XML and Relational Data 1.3 Overview of DB2 purexml 1.4 Benefits of DB2 purexml over Alternative Storage

More information

Whom Is This Book For?... xxiv How Is This Book Organized?... xxiv Additional Resources... xxvi

Whom Is This Book For?... xxiv How Is This Book Organized?... xxiv Additional Resources... xxvi Foreword by Bryan Hunter xv Preface xix Acknowledgments xxi Introduction xxiii Whom Is This Book For?... xxiv How Is This Book Organized?... xxiv Additional Resources... xxvi 1 Meet F# 1 F# in Visual Studio...

More information

Practical Database Programming With Visual C#.NET

Practical Database Programming With Visual C#.NET Practical Database Programming With Visual C#.NET Ying Bai Department of Computer Science and Engineering Johnson C. Smith University Charlotte, North Carolina IEEE PRESS A John Wiley & Sons, Inc., Publication

More information

Fónfix Repair Logging System

Fónfix Repair Logging System Fónfix Repair Logging System Fónfix have developed a new web-based Repair System for Stores. The new system will be held on the Fónfix server and will be managed and maintained by Fónfix. To access the

More information

Mathematics Shape and Space: Polygon Angles

Mathematics Shape and Space: Polygon Angles a place of mind F A C U L T Y O F E D U C A T I O N Department of Curriculum and Pedagogy Mathematics Shape and Space: Polygon Angles Science and Mathematics Education Research Group Supported by UBC Teaching

More information

Advanced WCF 4.0 .NET. Web Services. Contents for.net Professionals. Learn new and stay updated. Design Patterns, OOPS Principles, WCF, WPF, MVC &LINQ

Advanced WCF 4.0 .NET. Web Services. Contents for.net Professionals. Learn new and stay updated. Design Patterns, OOPS Principles, WCF, WPF, MVC &LINQ Serialization PLINQ WPF LINQ SOA Design Patterns Web Services 4.0.NET Reflection Reflection WCF MVC Microsoft Visual Studio 2010 Advanced Contents for.net Professionals Learn new and stay updated Design

More information

XML Technologies. Doc. RNDr. Irena Holubova, Ph.D. Web pages:

XML Technologies. Doc. RNDr. Irena Holubova, Ph.D. Web pages: XML Technologies Doc. RNDr. Irena Holubova, Ph.D. holubova@ksi.mff.cuni.cz Web pages: http://www.ksi.mff.cuni.cz/~holubova/nprg036/ Outline Introduction to XML format, overview of XML technologies DTD

More information

Introduction to Creo Elements/Direct 19.0 Modeling

Introduction to Creo Elements/Direct 19.0 Modeling Introduction to Creo Elements/Direct 19.0 Modeling Overview Course Code Course Length TRN-4531-T 3 Day In this course, you will learn the basics about 3-D design using Creo Elements/Direct Modeling. You

More information

SAP' ABAP. Handbook. Kogent Learning Solutions, Inc. Sudbury, Massachusetts JONES AND BARTLETT PUBLISHERS BOSTON TORONTO LONDON SINUAPORI:

SAP' ABAP. Handbook. Kogent Learning Solutions, Inc. Sudbury, Massachusetts JONES AND BARTLETT PUBLISHERS BOSTON TORONTO LONDON SINUAPORI: SAP' ABAP Handbook Kogent Learning Solutions, Inc. JONES AND BARTLETT PUBLISHERS Sudbury, Massachusetts BOSTON TORONTO LONDON SINUAPORI: Table of Contents Introduction xxi About This Book How to Use This

More information

"Charting the Course... MOC C: Developing SQL Databases. Course Summary

Charting the Course... MOC C: Developing SQL Databases. Course Summary Course Summary Description This five-day instructor-led course provides students with the knowledge and skills to develop a Microsoft SQL database. The course focuses on teaching individuals how to use

More information

CHAPTER 1: VISUAL STUDIO

CHAPTER 1: VISUAL STUDIO INTRODUCTION xxxi PART I: LANGUAGE CONSTRUCTS AND ENVIRONMENT CHAPTER 1: VISUAL STUDIO 2012 3 Visual Studio 2012 4 Visual Basic Keywords and Syntax 5 Console Applications 10 Creating a Project from a Project

More information

Introduction to PTC Windchill PDMLink 11.0 for the Implementation Team

Introduction to PTC Windchill PDMLink 11.0 for the Implementation Team Introduction to PTC Windchill PDMLink 11.0 for the Implementation Team Overview Course Code Course Length TRN-4752-T 16 Hours In this course, you will learn how to complete basic Windchill PDMLink functions.

More information

Visual C# 2008 How to Program, 3/E Outline

Visual C# 2008 How to Program, 3/E Outline vcsharp2008htp_outline.fm Page ix Monday, December 17, 2007 4:39 PM Visual C# 2008 How to Program, 3/E Outline ( subject to change) current as of 12/17/07. As the contents change, we ll post updates at

More information

Introduction to PTC Windchill PDMLink 11.0 for Heavy Users

Introduction to PTC Windchill PDMLink 11.0 for Heavy Users Introduction to PTC Windchill PDMLink 11.0 for Heavy Users Overview Course Code Course Length TRN-4751-T 16 Hours In this course, you will learn how to complete the day-to-day functions that enable you

More information

C# in Depth SECOND EDITION JON SKEET. MANNING Greenwich (74 w. long.)

C# in Depth SECOND EDITION JON SKEET. MANNING Greenwich (74 w. long.) C# in Depth SECOND EDITION JON SKEET II MANNING Greenwich (74 w. long.) brief contents PART 1 PREPARING FOR THE JOURNEY 1 The changing face of C# development 2 Core foundations: building on C# 1 27 PART

More information

Introduction to XQuery and XML Databases

Introduction to XQuery and XML Databases Introduction to XQuery and XML Databases TEI@Oxford July 2009 XQuery While XSLT is good for transforming XML to other formats (XML, HTML, PDF, Text, etc.) sometimes you may wish to query a large database

More information

Enterprise JavaBeans 3.1

Enterprise JavaBeans 3.1 SIXTH EDITION Enterprise JavaBeans 3.1 Andrew Lee Rubinger and Bill Burke O'REILLY* Beijing Cambridge Farnham Kbln Sebastopol Tokyo Table of Contents Preface xv Part I. Why Enterprise JavaBeans? 1. Introduction

More information

Programming Entity Framework

Programming Entity Framework SECOND EDITION Programming Entity Framework UNIVERSITAT LIECHTENSTEIN Bibliothek Julia Lerman O'REILLY 4 Beijing Cambridge Farnham Koln Sebastopol Tokyo Table of Contents Foreword Preface xxi xxiii 1.

More information

Installing and Administering a Satellite Environment

Installing and Administering a Satellite Environment IBM DB2 Universal Database Installing and Administering a Satellite Environment Version 8 GC09-4823-00 IBM DB2 Universal Database Installing and Administering a Satellite Environment Version 8 GC09-4823-00

More information

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML Chapter 7 XML 7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML

More information

Foundation XML and E4X for Flash and Flex

Foundation XML and E4X for Flash and Flex Foundation XML and E4X for Flash and Flex SasJacobs friendsof 0 D E S I G N E R TO D E S I G N E R " an Apress company About the Author About the Technical Reviewer About the Cover Image Designer Acknowledgments

More information

Table of Contents. Preface... xxi

Table of Contents. Preface... xxi Table of Contents Preface... xxi Chapter 1: Introduction to Python... 1 Python... 2 Features of Python... 3 Execution of a Python Program... 7 Viewing the Byte Code... 9 Flavors of Python... 10 Python

More information

CHAPTER 1: GETTING STARTED WITH ASP.NET 4 1

CHAPTER 1: GETTING STARTED WITH ASP.NET 4 1 FOREWORD INTRODUCTION xxv xxvii CHAPTER 1: GETTING STARTED WITH ASP.NET 4 1 Microsoft Visual Web Developer 2 Getting Visual Web Developer 3 Installing Visual Web Developer Express 3 Creating Your First

More information

Oracle TopLink. Developer s Guide, Volume 4 10g ( ) B September 2006 Understanding Non-Relational Mappings

Oracle TopLink. Developer s Guide, Volume 4 10g ( ) B September 2006 Understanding Non-Relational Mappings Oracle TopLink Developer s Guide, Volume 4 10g (10.1.3.1.0) B28218-01 September 2006 Understanding Non-Relational Mappings Oracle TopLink Developer s Guide, Volume 4, 10g (10.1.3.1.0) B28218-01 Copyright

More information

Business Component Development with EJB Technology, Java EE 5

Business Component Development with EJB Technology, Java EE 5 Business Component Development with EJB Technology, Java EE 5 Student Guide SL-351-EE5 REV D.2 D61838GC10 Edition 1.0 D62447 Copyright 2008, 2009, Oracle and/or its affiliates. All rights reserved. Disclaimer

More information

Update to Creo Parametric 4.0 from Creo Parametric 2.0

Update to Creo Parametric 4.0 from Creo Parametric 2.0 Update to Creo from Creo Parametric 2.0 Overview Course Code Course Length TRN-5125-T 16 Hours In this course, you will learn how to utilize the variety of functionality enhancements in Creo. You will

More information

LINQ Quickly. A practical guide to programming Language Integrated Query with C# N Satheesh Kumar BIRMINGHAM - MUMBAI

LINQ Quickly. A practical guide to programming Language Integrated Query with C# N Satheesh Kumar BIRMINGHAM - MUMBAI LINQ Quickly A practical guide to programming Language Integrated Query with C# N Satheesh Kumar BIRMINGHAM - MUMBAI LINQ Quickly Copyright 2007 Packt Publishing All rights reserved. No part of this book

More information

Pre-Discussion. XQuery: An XML Query Language. Outline. 1. The story, in brief is. Other query languages. XML vs. Relational Data

Pre-Discussion. XQuery: An XML Query Language. Outline. 1. The story, in brief is. Other query languages. XML vs. Relational Data Pre-Discussion XQuery: An XML Query Language D. Chamberlin After the presentation, we will evaluate XQuery. During the presentation, think about consequences of the design decisions on the usability of

More information

Previous C# Releases. C# 3.0 Language Features. C# 3.0 Features. C# 3.0 Orcas. Local Variables. Language Integrated Query 3/23/2007

Previous C# Releases. C# 3.0 Language Features. C# 3.0 Features. C# 3.0 Orcas. Local Variables. Language Integrated Query 3/23/2007 Previous C# Releases C# 3.0 Language Features C# Programming March 12, 2007 1.0 2001 1.1 2003 2.0 2005 Generics Anonymous methods Iterators with yield Static classes Covariance and contravariance for delegate

More information

Manipulating XML in Visual Basic

Manipulating XML in Visual Basic XML in Visual Basic https://msdn.microsoft.com/en-us/library/bb384833(d=printer).aspx 1 of 1 03.09.2016 10:21 XML in Visual Basic Visual Studio 2015 Visual Basic provides integrated language support that

More information

"Charting the Course... SharePoint 2007 Hands-On Labs Course Summary

Charting the Course... SharePoint 2007 Hands-On Labs Course Summary Course Summary Description This series of 33 hands-on labs allows students to explore the new features of Microsoft SharePoint Server, Microsoft Windows, Microsoft Office, including Microsoft Office Groove,

More information

SQL Queries. for. Mere Mortals. Third Edition. A Hands-On Guide to Data Manipulation in SQL. John L. Viescas Michael J. Hernandez

SQL Queries. for. Mere Mortals. Third Edition. A Hands-On Guide to Data Manipulation in SQL. John L. Viescas Michael J. Hernandez SQL Queries for Mere Mortals Third Edition A Hands-On Guide to Data Manipulation in SQL John L. Viescas Michael J. Hernandez r A TT TAddison-Wesley Upper Saddle River, NJ Boston Indianapolis San Francisco

More information

DOT NET COURSE BROCHURE

DOT NET COURSE BROCHURE Page 1 1Pointer Technology Chacko Towers,Anna nagar Main Road, Anna Nager(Annai Insititute 2nd Floor) Pondicherry-05 Mobile :+91-9600444787,9487662326 Website : http://www.1pointer.com/ Email : info@1pointer.com/onepointertechnology@gmail.com

More information

Chapter 1: Introducing SQL Server

Chapter 1: Introducing SQL Server Leiter ftoc.tex V3-03/25/2009 1:31pm Page xv Introduction xxvii Chapter 1: Introducing SQL Server 2008 1 A Condensed History of SQL Server 1 In the Beginning 1 The Evolution of a Database 1 Microsoft Goes

More information

Progress Report on XQuery

Progress Report on XQuery Progress Report on XQuery Don Chamberlin Almaden Research Center May 24, 2002 History Dec. '98: W3C sponsors workshop on XML Query Oct. '99: W3C charters XML Query working group Chair: Paul Cotton About

More information

Programming in C#

Programming in C# Course Outline 20483- Programming in C# Duration: 5 days (30 hours) Target Audience: This course is intended for experienced developers who already have programming experience in C, C++, JavaScript, Objective-C,

More information

Scenario Manager User Guide. Release September 2013

Scenario Manager User Guide. Release September 2013 Scenario Manager User Guide Release 6.2.1 September 2013 Scenario Manager User Guide Release 6.2.1 September 2013 Document Control Number: 9MN12-62110017 Document Number: SMUG-13-FCCM-0017-6.2.1-01 Oracle

More information

Oracle BI 11g R1: Build Repositories

Oracle BI 11g R1: Build Repositories Oracle BI 11g R1: Build Repositories Volume I - Student Guide D63514GC11 Edition 1.1 June 2011 D73309 Author Jim Sarokin Technical Contributors and Reviewers Marla Azriel Roger Bolsius Bob Ertl Alan Lee

More information

"Charting the Course... MOC A: Developing with the SharePoint Framework. Course Summary

Charting the Course... MOC A: Developing with the SharePoint Framework. Course Summary Course Summary Description This five-day instructor-led course is intended for developers who want to be able to create client-side applications with SharePoint Framework. In this course, students will

More information

Contents. Using Interpreters... 5 Using Compilers... 5 Program Development Life Cycle... 6

Contents. Using Interpreters... 5 Using Compilers... 5 Program Development Life Cycle... 6 Contents ***Introduction*** Introduction to Programming... 1 Introduction... 2 What is a Program?... 2 Role Played by a Program to Perform a Task... 2 What is a Programming Language?... 3 Types of Programming

More information

C# Syllabus. MS.NET Framework Introduction

C# Syllabus. MS.NET Framework Introduction C# Syllabus MS.NET Framework Introduction The.NET Framework - an Overview Framework Components Framework Versions Types of Applications which can be developed using MS.NET MS.NET Base Class Library MS.NET

More information

Introduction... xxi. Chapter 1: Introducing Visual Basic In Depth... 2

Introduction... xxi. Chapter 1: Introducing Visual Basic In Depth... 2 Introduction... xxi Chapter 1: Introducing Visual Basic 2008... 1 In Depth... 2 New Features Introduced in Visual Basic 2008... 2 Language Improvements in Visual Basic 2008... 2 Compiler Changes and Options

More information

Delivery Options: Attend face-to-face in the classroom or via remote-live attendance.

Delivery Options: Attend face-to-face in the classroom or via remote-live attendance. XML Programming Duration: 5 Days US Price: $2795 UK Price: 1,995 *Prices are subject to VAT CA Price: CDN$3,275 *Prices are subject to GST/HST Delivery Options: Attend face-to-face in the classroom or

More information

Introduction to Windchill PDMLink 10.2 for the Implementation Team

Introduction to Windchill PDMLink 10.2 for the Implementation Team Introduction to Windchill PDMLink 10.2 for the Implementation Team Overview Course Code Course Length TRN-4262-T 2 Days In this course, you will learn how to complete basic Windchill PDMLink functions.

More information

"Charting the Course... Intermediate PHP & MySQL Course Summary

Charting the Course... Intermediate PHP & MySQL Course Summary Course Summary Description In this PHP training course, students will learn to create database-driven websites using PHP and MySQL or the database of their choice. The class also covers SQL basics. Objectives

More information

Learn Well Technocraft

Learn Well Technocraft Getting Started with ASP.NET This module explains how to build and configure a simple ASP.NET application. Introduction to ASP.NET Web Applications Features of ASP.NET Configuring ASP.NET Applications

More information

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11 !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... 7:4 @import Directive... 9:11 A Absolute Units of Length... 9:14 Addressing the First Line... 9:6 Assigning Meaning to XML Tags...

More information

Acknowledgments. Chapter 1: Primer in Excel VBA 1. Chapter 2: The Application Object 63

Acknowledgments. Chapter 1: Primer in Excel VBA 1. Chapter 2: The Application Object 63 Acknowledgments Introduction xxi xxiii Chapter 1: Primer in Excel VBA 1 Using the Macro Recorder 2 Recording Macros 2 Running Macros 6 The Visual Basic Editor 8 Other Ways to Run Macros 11 User-Defined

More information

DOT NET Syllabus (6 Months)

DOT NET Syllabus (6 Months) DOT NET Syllabus (6 Months) THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In- Time Compilation and CLS Disassembling.Net Application to IL

More information

Selenium Online Training Brochure

Selenium Online Training Brochure Selenium Online Training Brochure Selenium Online Training in Real-time orientation, Selenium WebDriver, Core Java Programming, TestNG Testing Framework, Maven Integration, Jenkins Integration and Selenium

More information

Chapter 13 XML: Extensible Markup Language

Chapter 13 XML: Extensible Markup Language Chapter 13 XML: Extensible Markup Language - Internet applications provide Web interfaces to databases (data sources) - Three-tier architecture Client V Application Programs Webserver V Database Server

More information

"Charting the Course... Comprehensive Angular. Course Summary

Charting the Course... Comprehensive Angular. Course Summary Description Course Summary Angular is a powerful client-side JavaScript framework from Google that supports simple, maintainable, responsive, and modular applications. It uses modern web platform capabilities

More information

XLinq.NET Language Integrated Query for XML Data

XLinq.NET Language Integrated Query for XML Data XLinq.NET Language Integrated Query for XML Data Punit Ganshani About Author: Punit Ganshani is a software professional working for a IT MNC, and holds good command over.net and Sharepoint. He has authored

More information