Page 6

Search Result: - 618


Matthew MacDonald photo

Pro WPF with VB 2008
Author: Matthew MacDonald
Pages: 1089
Contents at a GlanceAbout the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiiiAbout the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvAcknowledgments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxviiIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxixnCHAPTER 1 Introducing WPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1nCHAPTER 2 XAML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23nCHAPTER 3 The Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59nCHAPTER 4 Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77nCHAPTER 5 Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119nCHAPTER 6 Dependency Properties and Routed Events . . . . . . . . . . . . . . . . . . . . 139nCHAPTER 7 Classic Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183nCHAPTER 8 Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219nCHAPTER 9 Pages and Navigation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249nCHAPTER 10 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293nCHAPTER 11 Resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321nCHAPTER 12 Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353nCHAPTER 13 Shapes Transforms and Brushes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371nCHAPTER 14 Geometries Drawings and Visuals. . . . . . . . . . . . . . . . . . . . . . . . . . . . 417nCHAPTER 15 Control Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453nCHAPTER 16 Data Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499nCHAPTER 17 Data Templates Data Views and Data Providers . . . . . . . . . . . . . . 561nCHAPTER 18 Lists Trees Toolbars and Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609nCHAPTER 19 Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655nCHAPTER 20 Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709nCHAPTER 21 Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 741nCHAPTER 22 Sound and Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 795nCHAPTER 23 3-D Drawing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821
nCHAPTER 24 Custom Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 867nCHAPTER 25 Interacting with Windows Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 917nCHAPTER 26 Multithreading and Add-Ins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 941nCHAPTER 27 ClickOnce Deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 979nINDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 997

 2021-05-11 21:38:47 |  135 | Naser

JOYCE FARRELL photo

کتاب آموزش جاوا JAVA PROGRAMMING
Author: JOYCE FARRELL
Pages: 978
کتاب آموزش جاوا Java Programming برنامه نویسی به زبان محبوب و پرطرفدر جاوا را به شما آموزش می دهد . این کتاب آموزش جاوا یک راهنمای آموزشی جامع، پرطرفدار، با رویکردی عملی و پروژه محور است که توسعه دهندگان می توانند با مطالعه ی آن دانش و مهارت مکفی برای پیاده سازی اپلیکیشن های تحت وب و گرافیکی (GUI) با زبان و پلت فرم جاوا را در زمانی کوتاه فرا بگیرند. Joyce Farrell، نگارنده کتاب آموزش جاوا پیشرو، اصول و مبانی برنامه نویسی شی گرا و ساخت یافته در جاوا را به صورت گام به گام تشریح کرده و با ارائه ی مثال های کاربردی، کاربر را در تثبیت آموخته های خویش یاری می کند.
 




978-1111529444

 2021-05-07 02:55:25 |  186 | Naser

Dan Sanderson photo
 2021-05-08 02:02:50 |  148 | Naser

dan wellman photo

دانلود کتاب jQuery Hotshot
Author: dan wellman
Pages: 296
دوره  آموزش JQuery
ده پروژه ی عملی که تمامی مهارت های شما را بکار گرفته، اعتماد نفس شما را بالا می برد و به شما در اشراف پیدا کردن بر کتابخانه ی jQuery یاری می کند.
توضیح مختصر: میلیون ها نفر برای برنامه نویسی سریع، بهینه و مختصر سمت کلاینت ، بجای JavaScript خالص از کتابخانه ی قدرتمند و کارامد آن jQuery استفاده می کنند. در واقع این کتابخانه به ابزار استاندارد و متعارف طراحان و برنامه نویس وب برای افزودن المان های داینامیک و تعاملی به سایت و رفع مشکلات مربوط به ناسازگاری مرورگرها و کاهش زمان صرف شده برای برنامه نویسی تبدیل شده است. 
jQuery HotShot امکانات کتابخانه ی جی کوئری و تکنولوژی های مرتبط را طی 10 پروژه ی کاربردی و به صورت گام به گام برای شما شرح می دهد. هر پروژه علاوه بر پرداختن به مبحث خاص از این کتابخانه یا بخشی از API مورد نظر، به موضوعی مرتبط همچون template های رسمی jQuery یا امکانات HTML5 نظیر localStorage نیز می پردازد. شما را دعوت می کنیم با مطالعه ی این کتاب دانش خود از jQuery و تمامی تکنولوژی های مرتبط با آن را گسترش دهید.
jQuery is used by millions of people to write JavaScript more easily and more quickly. It has become the standard tool for web developers and designers to add dynamic interactive elements to their sites smoothing out browser inconsistencies and reducing costly development time. jQuery Hotshot walks you step by step through 10 projects designed to familiarise you with the jQuery library and related technologies. Each project focuses on a particular subject or section of the API but also looks at something related like jQuerys official templates or an HTML5 feature like localStorage. Build your knowledge of jQuery and related technologies.



 
 


 



ISBN:
978-1-84951-910-6


Year:
2013


Pages:
296


Language:
English


File size:
4 MB


File format:
PDF



Project One: Sliding Puzzle 9Mission Briefing 9Laying down the underlying HTML 12Creating a code wrapper and defining variables 15Splitting an image into pieces 18Shuffling the puzzle pieces 20Making the puzzle pieces draggable 26Starting and stopping the timer 31Determining if the puzzle has been solved 34Remembering best times and adding some final styling 35Mission Accomplished 38You Ready To Go Gung HO? A Hotshot Challenge 39Project Two: A Fixed Position Sidebar with Animated Scrolling 41Mission Briefing 41Building a suitable demo page 43Storing the initial position of the fixed element 46Detecting when the page has scrolled 48Handling browser window resizes 49Automating scrolling 50Restoring the browsers back button 53Handling the hash fragment on page load 54Mission Accomplished 55You Ready To Go Gung HO? A Hotshot Challenge 55
Project Three: An Interactive Google Map 57Mission Briefing 57Creating the page and interface 60Initializing the map 61Showing the company HQ with a custom overlay 64Capturing clicks on the map 67Updating the UI with the start and end locations 70Handling marker repositions 72Factoring in weights 74Displaying the projected distance and cost 76Mission Accomplished 81You Ready To Go Gung HO? A Hotshot Challenge 81Project Four: A jQuery Mobile Single-page App 83Mission Briefing 83Building the welcome page 86Adding a second page 89Creating the script wrapper 92Getting some bounties 96Adding a JsRender template 98Building the list view 100Building an item view 108Handling paging 115Mission Accomplished 116You Ready To Go Gung HO? A Hotshot Challenge 116Project Five: jQuery File Uploader 117Mission Briefing 117Creating the page and plugin wrapper 119Generating the underlying markup 123Adding event handlers for receiving files to upload 126Displaying the list of selected files 129Removing files from the upload list 135Adding a jQuery UI progress indicator 137Uploading the selected files 139Reporting success and tidying up 142Mission Accomplished 145You Ready To Go Gung HO? A Hotshot Challenge 145

 2021-05-08 02:02:47 |  109 | Naser

Laurence Moroney photo

کتاب آموزش Web Development، سیلورلایت و ASP.NET AJAX از تازه کار تا حرفه ای
Author: Laurence Moroney
Pages: 450
کتاب آموزش Web Development، سیلورلایت و ASP.NET AJAX از تازه کار تا حرفه ای

مطالب در یک نگاه:
درباره نویسنده
مقدمه
مقدمه ای برای توسعه وب سایت
مبانی توسعه وب با ASP.NET
فرم وب با ASP.NET
Data Binding با ASP.NET
ASP.NET Web Services
استقرار وب سایت شما
فن آوری های نسل آینده
NET 3.0: Windows Communication Foundation
NET 3.0: Windows Presentation Foundation
NET 3.0: Windows Workflow Foundation
برنامه های Ajax و توانمند سازی تجربه کاربران وب سایت
آموزش در مورد برنامه های افزودنی AJAX برای ASP.NET
اسکریپت آژاکس و خدمات
برنامه نویس جاوا اسکریپتی با ASP.NET AJAX
افزایش تجربه وب با سیلورلایت
برنامه نویسی سیلورلایت با XAML و JavaScript

 2021-05-11 14:48:42 |  129 | Naser

Matthew MacDonald photo

کتاب آموزش ASP.NET 3.5 در C # 2008از تازه کار تا حرفه ایC # 2008
Author: Matthew MacDonald
Pages: 994
کتاب آموزش ASP.NET 3.5 در C # 2008از تازه کار تا حرفه ای
مطالب در یک نگاه:
درباره نویسنده
مقدمه
فصل 1:  NET Framework.
فصل 2: زبان C #
فصل 3: انواع، اشیاء، و Namespace ها
فصل 4 : ویژوال استودیو
فصل 5: مبانی فرم وب
فصل 6: کنترل های وب
فصل 7: State Management
فصل 8: خطا در جابجایی، ورود به سیستم، و ردیابی
فصل 9: گسترش برنامه های کاربردی ASP.NET
فصل 10: Validation
فصل 11 :  Rich Controls
فصل 12:  User Controls and Graphics
فصل 13:  Styles Themes and Master Pages
فصل 14:  Website Navigation
فصل 15: مبانی ADO.NET
فصل 16: اتصال داده ها
فصل 17: کنترل های داده
فصل 18: فایل ها و Streams
فصل 19: XML
فصل 20: اصول امنیتی
فصل 21: عضویت
فصل 22: Profiles
فصل 23: Component-Based Programming
فصل 24: Caching
فصل 25: ASP.NET AJAX

 2021-05-11 21:38:42 |  130 | Naser

Brian Paulen and Jeff Finken photo

Pro SQL Server 2008 Analytics
Author: Brian Paulen and Jeff Finken
Pages: 282
Contents at a GlanceForeword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ixAbout the Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xiAbout the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiiiAcknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv■CHAPTER 1 An Overview of Analytics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1■CHAPTER 2 Seven Keys to Successful Reporting Projects . . . . . . . . . . . . . . . . . . 23■CHAPTER 3 Key Performance Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37■CHAPTER 4 Microsoft Platform Components for Dashboards . . . . . . . . . . . . . . . 53■CHAPTER 5 Core Components of SQL Server 2008 . . . . . . . . . . . . . . . . . . . . . . . . 99■CHAPTER 6 SQL Server Analysis Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143■CHAPTER 7 Performance Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171■CHAPTER 8 Implementation and Maintenance of the Integrated System . . . 195■CHAPTER 9 Case Studies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223■INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251

 2021-05-09 07:28:05 |  125 | Naser

Jeff Levinson and David Nelson photo

Pro Visual Studio Team System with Team Edition for Database Professionals
Author: Jeff Levinson and David Nelson
Pages: 646
Contents at a GlanceForeword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xixAbout the Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiAcknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiiiIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvnCHAPTER 1 Introduction to Visual Studio Team System . . . . . . . . . . . . . . . . . . . . . . 1PART 1 n n n Team FoundationnCHAPTER 2 Team Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17nCHAPTER 3 Team Foundation Version Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59nCHAPTER 4 Project Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103nCHAPTER 5 Team Work Item Tracking. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121nCHAPTER 6 Team Reporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159nCHAPTER 7 Team Foundation Build . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197PART 2 n n n Team Edition for Software ArchitectsnCHAPTER 8 Application Designer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219nCHAPTER 9 System and Logical Datacenter Designers . . . . . . . . . . . . . . . . . . . . . 255nCHAPTER 10 Deployment Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285PART 3 n n n Team Edition for SoftwareDevelopersnCHAPTER 11 Class Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311nCHAPTER 12 Unit Testing and Code Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339nCHAPTER 13 Static Code Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377nCHAPTER 14 Performance Analysis. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
PART 4 n n n Team Edition for Software TestersnCHAPTER 15 Web Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433nCHAPTER 16 Load Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471PART 5 n n n Team Edition for DatabaseProfessionalsnCHAPTER 17 Database Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499nCHAPTER 18 Unit Testing and Data Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527nCHAPTER 19 Building and Deploying Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557nCHAPTER 20 Extending the Database Professionals Edition . . . . . . . . . . . . . . . . . 571nAPPENDIX Command-Line Tools Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597nINDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 601

 2021-05-10 11:46:18 |  159 | Naser

John Paul Mueller photo

Microsoft ADO.NET Entity Framework Step by Step
Author: John Paul Mueller
Pages: 448
Chapter 1 Getting to know the Entity Framework 3
Chapter 2 Looking more closely at queries 29
Chapter 3 Choosing a workflow 49
Part II COMPLETING BASIC TASKS
Chapter 4 Generating and using objects 79
Chapter 5 Performing essential tasks 101
Part III MANIPULATING DATA USING THE ENTITY FRAMEWORK
Chapter 6 Manipulating data using LINQ 119
Chapter 7 Manipulating data using Entity SQL 147
Chapter 8 Interaction with stored procedures 175
Chapter 9 Interaction with views 193
Chapter 10 Interaction with Table-Valued Functions 213
Part IV OVERCOMING ENTITY ERRORS
Chapter 11 Dealing with exceptions 237
Chapter 12 Overcoming concurrency issues 265
Chapter 13 Handling performance problems 287
Part V ADVANCED MANAGEMENT TECHNIQUES
Chapter 14 Creating custom entities 319
Chapter 15 Mapping data types to properties 347
Chapter 16 Performing advanced management tasks 369

 2021-05-12 01:42:22 |  172 | Naser

David R. Brooks photo

Guide to HTML JavaScript and PHP
Author: David R. Brooks
Pages: 427
1 Introducing HTML and JavaScript................................................................. 11.1 Introducing the Tools.................................................................................. 11.1.1 What Is an HTML Document?....................................................... 11.1.2 What Is JavaScript?........................................................................ 31.1.3 How Do You Create HTML/JavaScript Documents?..................... 41.1.4 Some Typographic Conventions Used in This Book...................... 61.1.5 Where Can You Find More Information About HTMLand JavaScript?............................................................................... 61.2 Your First HTML/JavaScript Documents................................................... 71.3 Accessing HTML Documents on the Web................................................. 141.4 Another Example........................................................................................ 162 HTML Document Basics................................................................................... 192.1 Documents Elements Attributes and Values............................................ 192.1.1 Essential Elements.......................................................................... 192.1.2 Some Other Important Elements.................................................... 202.2 HTML Syntax and Style............................................................................. 262.3 Using the script Element....................................................................... 282.4 Creating and Organizing a Web Site........................................................... 282.5 Selecting and Using Colors......................................................................... 322.6 Using Cascading Style Sheets..................................................................... 342.7 Another Example........................................................................................ 393 HTML Tables Forms Lists and Frames........................................................ 413.1 The table Element................................................................................... 413.1.1 Basic Table Formatting................................................................... 413.1.2 Subdividing Tables into Sections.................................................... 433.1.3 Merging Cells Across Rows and Columns..................................... 453.2 The form and input Elements................................................................ 483.3 Creating Pull-Down Lists........................................................................... 523.4 Combining Tables and Forms..................................................................... 533.5 E-Mailing the Contents of Forms............................................................... 553.6 The List Elements....................................................................................... 57
3.7 Using HTML Frames................................................................................ 623.8 More Examples......................................................................................... 673.8.1 Selecting Cloud Types from a List of Possibilities..................... 673.8.2 A Simple “Split Window” Application....................................... 694 Fundamentals of the JavaScript Language..................................................... 734.1 Capabilities of JavaScript.......................................................................... 734.2 Some Essential Terminology..................................................................... 744.3 Structure of JavaScript Code..................................................................... 764.3.1 JavaScript Statements.................................................................. 764.3.2 Statement Blocks......................................................................... 764.3.3 Comments.................................................................................... 774.4 Data and Objects....................................................................................... 784.4.1 Data Declarations and Variables................................................. 784.4.2 Data Types................................................................................... 794.4.3 Literals......................................................................................... 804.4.4 Case Sensitivity........................................................................... 804.4.5 Objects and Methods for Input and Output................................. 814.4.6 String Methods............................................................................ 834.5 Tokens Operators Expressions and Statements...................................... 854.5.1 Tokens......................................................................................... 854.5.2 Arithmetic Operators................................................................... 854.5.3 The Assignment Operator........................................................... 864.5.4 Shorthand Arithmetic/Assignment Operators............................. 874.6 The JavaScript Math Object..................................................................... 894.7 Comparison Operators and Decision-Making Structures......................... 934.7.1 Relational and Logical Operators................................................ 934.7.2 The if Construct (Branching Structures)................................... 934.7.3 The switch Construct............................................................... 984.8 Loop Structures......................................................................................... 994.8.1 Count-Controlled Loops.............................................................. 994.8.2 Conditional Loops....................................................................... 1014.9 Using JavaScript to Change Values in Form Fields.................................. 1044.10 More Examples......................................................................................... 1074.10.1 Solving the Quadratic Equation.................................................. 1074.10.2 Rectangular Rule Numerical Integration..................................... 1085 Using Arrays in HTML/JavaScript.................................................................. 1115.1 Basic Array Properties.............................................................................. 1115.2 Some Operations on Arrays...................................................................... 1155.2.1 Manipulating Stacks and Queues................................................ 1155.2.2 Sorting......................................................................................... 1175.3 More about Array Methods....................................................................... 1185.4 Creating Two-Dimensional Arrays........................................................... 1195.5 Using Arrays to Access the Contents of Forms........................................ 122
5.5.1 Accessing values of type=´text´ Fields.................................. 1225.5.2 Accessing type=´radio´ and type=´checkbox´Fields............................................................................................... 1255.5.3 Accessing Multiple Options Chosen in <select> tags............... 1275.6 Hiding the Contents of a JavaScript Script................................................. 1295.7 More Examples........................................................................................... 1315.7.1 Checking IDs and Passwords.......................................................... 1315.7.2 Magic Squares................................................................................ 1326 JavaScript Functions......................................................................................... 1356.1 The Purpose of Functions in Programming................................................ 1356.2 Defining JavaScript Functions.................................................................... 1366.3 Using JavaScript Functions With HTML Forms........................................ 1386.3.1 Passing Numerical Values to a Function........................................ 1396.3.2 Using Entire Forms as Input........................................................... 1426.3.3 Using Arrays to Return Output Values........................................... 1456.4 Some Global Methods and Event Handlers................................................ 1466.4.1 Global Methods.............................................................................. 1466.4.2 Using Event Handlers with Forms and Functions.......................... 1496.5 Recursive Functions.................................................................................... 1506.6 Passing Values from One Document to Another........................................ 1546.7 Revisiting the JavaScript sort() Methods.............................................. 1576.8 More Examples........................................................................................... 1586.8.1 Dewpoint Temperature................................................................... 1586.8.2 Loan Repayment Schedule............................................................. 1606.8.3 Legendre Polynomials.................................................................... 1626.8.4 Array-Derived Pull-Down Menus.................................................. 1636.8.5 Creating a “Password-Protected” HTML Document..................... 1657 Creating a Server-Side Environment with PHP............................................. 1677.1 Getting Started with PHP............................................................................ 1677.2 More Examples........................................................................................... 1827.2.1 Solving the Quadratic Equation...................................................... 1827.2.2 Preventing Multiple Submissions from a Form.............................. 1848 Working with PHP............................................................................................. 1878.1 Structure of PHP Scripts............................................................................. 1878.1 Calculations with PHP................................................................................ 1888.3 More About PHP File Input/Output............................................................ 2038.4 More Examples........................................................................................... 2068.4.1 Calculating Volumes of Solid Objects............................................ 2068.4.2 Processing .bmp Image Files......................................................... 2118.4.3 Transforming and Displaying Images............................................. 2218.4.4 Self-Contained HTML/JavaScript/PHP Documents...................... 222
9 PHP Arrays......................................................................................................... 2259.1 Array Definition........................................................................................ 2259.2 Array Sorting............................................................................................. 2299.3 Stacks Queues and Line Crashers........................................................... 2329.4 More Examples......................................................................................... 2349.4.1 The Quadratic Formula Revisited............................................... 2349.4.2 Reading checkbox Values........................................................ 2379.4.3 Building a Histogram Array........................................................ 2419.4.4 Shuffle a Card Deck.................................................................... 2439.4.5 Manage a Data File..................................................................... 2449.4.6 Recursive Insertion Sort.............................................................. 24910 Summary of Selected PHP Language Elements.............................................. 25110.1 Data Types and Operators......................................................................... 25110.1.1 Data Types................................................................................... 25110.1.2 Operators..................................................................................... 25210.2 Conditional Execution............................................................................... 25310.2.1 Conditional Execution................................................................. 25310.2.2 Case-Controlled Conditional Execution...................................... 25410.3 Loops......................................................................................................... 25510.3.1 Count-Controlled Loops.............................................................. 25610.3.2 Condition-Controlled Loops....................................................... 25810.4 Functions and Language Constructs......................................................... 25910.4.1 File Handling and I/O Functions................................................. 25910.4.2 String Handling Functions.......................................................... 26910.4.3 Math Constants and Functions.................................................... 27310.4.4 Array Functions and Language Constructs................................. 27510.4.5 Miscellaneous Functions and Constructs.................................... 28111 Using PHP from a Command Line................................................................... 28712 Using Graphics with PHP................................................................................. 29312.1 Introduction............................................................................................... 29312.2 Writing GD Graphics Applications for Displaying Data.......................... 29312.2.1 Getting Started............................................................................. 29512.2.2 Pie Charts.................................................................................... 29712.2.3 Horizontal Bar Charts.................................................................. 30612.2.4 Vertical Bar Charts...................................................................... 31612.2.5 Line Graphs................................................................................. 33012.3 Summary of Some GD Graphics Functions.............................................. 34412.3.1 Create and Destroy Images......................................................... 34412.3.2 Draw Lines and Shapes............................................................... 34512.3.3 Display Text................................................................................ 347
Appendices.................................................................................................................. 349A.1 List of Document Examples.............................................................................. 349A.2 Displaying Special Characters in an HTML Document.................................... 353A.3 ASCII Character Codes..................................................................................... 355A.4 Strategies for Solving Computational Problems................................................ 357Exercises..................................................................................................................... 365Glossary...................................................................................................................... 395Index........................................................................................................................... 403Output Examples in Color........................................................................................ 413

 2021-05-06 06:49:11 |  123 | Naser

Stoyan Stefanov photo

Object-Oriented JavaScript
Author: Stoyan Stefanov
Pages: 354
دوره آموزش Javascript
A Bit of History 10The Winds of Change 11The Present 11The Future 12Object-Oriented Programming 12Objects 13Classes 13Encapsulation 14Aggregation 15Inheritance 15Polymorphism 16OOP Summary 16Setting up Your Training Environment 17Getting the Tools You Need 17Using the Firebug Console 18Summary 20Chapter 2: Primitive Data Types Arrays Loops and Conditions 21Variables 21Variables are Case Sensitive 22Operators 23Primitive Data Types 26Finding out the Value Type —the typeof Operator 27Numbers 27Octal and Hexadecimal Numbers 28Exponent Literals 29
Infinity 30NaN 31Strings 32String Conversions 33Special Strings 34Booleans 35Logical Operators 36Operator Precedence 38Lazy Evaluation 39Comparison 40Undefined and null 41Primitive Data Types Recap 43Arrays 44Adding/Updating Array Elements 45Deleting Elements 46Arrays of arrays 46Conditions and Loops 48Code Blocks 48if Conditions 49Checking if a Variable Exists 50Alternative if Syntax 52Switch 52Loops 54While Loops 54Do-while loops 55For Loops 55For-in Loops 58Comments 59Summary 59Exercises 60Chapter 3: Functions 61What is a Function? 62Calling a Function 62Parameters 62Pre-defined Functions 64parseInt() 65parseFloat() 66isNaN() 67isFinite() 68Encode/Decode URIs 68eval() 69A Bonus—the alert() Function 69Scope of Variables 70

 2021-05-06 06:49:05 |  151 | Naser

Matthew MacDonald photo

Pro Silverlight 4 in VB
Author: Matthew MacDonald
Pages: 897
Contents■ Contents at a Glance ...................................................................................................................v■ About the Author .....................................................................................................................xxii■ About the Technical Reviewer...............................................................................................xxiii■ Acknowledgments .................................................................................................................. xxiv■ Introduction............................................................................................................................ xxv■ Chapter 1: Introducing Silverlight..............................................................................................1Silverlight Design Tools .............................................................................................................1Visual Studio vs. Expression Blend ......................................................................................1Understanding Silverlight Websites ....................................................................................2Creating a Stand-Alone Silverlight Project ...............................................................................3Creating a Simple Silverlight Page ............................................................................................6Adding Event-Handling Code ..............................................................................................8Testing a Silverlight Application ........................................................................................10Creating an ASP.NET-Hosted Silverlight Project ...................................................................12ASP.NET Controls That Render Silverlight Content.........................................................15Mixing ASP.NET Controls and Silverlight Content...........................................................16Silverlight Compilation and Deployment ..............................................................................16Compiling a Silverlight Application...................................................................................16Deploying a Silverlight Application ...................................................................................18Silverlight Core Assemblies ................................................................................................20Silverlight Add-on Assemblies............................................................................................21Assembly Caching ...............................................................................................................22The HTML Entry Page ..............................................................................................................24Sizing the Silverlight Content Region ................................................................................26Silverlight Parameters .........................................................................................................26Alternative Content .............................................................................................................28Creating a Friendly Install Experience...............................................................................28■ CONTENTSviiThe Mark of the Web...........................................................................................................30The Last Word...........................................................................................................................31■ Chapter 2: XAML........................................................................................................................33XAML Basics.............................................................................................................................34XAML Namespaces..............................................................................................................34The Code-Behind Class.......................................................................................................38Properties and Events in XAML...............................................................................................39Simple Properties and Type Converters............................................................................40Complex Properties.............................................................................................................42Attached Properties.............................................................................................................44Nesting Elements.................................................................................................................45Events ..................................................................................................................................48The Full Eight Ball Example................................................................................................48XAML Resources......................................................................................................................49The Resources Collection ...................................................................................................50The Hierarchy of Resources................................................................................................51Accessing Resources in Code .............................................................................................53Organizing Resources with Resource Dictionaries...........................................................54Element-to-Element Binding ..................................................................................................55One-Way Binding ................................................................................................................55Two-Way Binding................................................................................................................57The Last Word...........................................................................................................................59■ Chapter 3: Layout ......................................................................................................................61The Layout Containers.............................................................................................................61The Panel Background ........................................................................................................63Borders ................................................................................................................................65Simple Layout with the StackPanel.........................................................................................66Layout Properties ................................................................................................................68Alignment............................................................................................................................69Margins................................................................................................................................70Minimum Maximum and Explicit Sizes ..........................................................................72The WrapPanel and DockPanel...............................................................................................74The WrapPanel ....................................................................................................................74The DockPanel.....................................................................................................................75■ CONTENTSviiiThe Grid....................................................................................................................................77Fine-Tuning Rows and Columns .......................................................................................79Nesting Layout Containers .................................................................................................80Spanning Rows and Columns ............................................................................................82The GridSplitter ...................................................................................................................83Coordinate-Based Layout with the Canvas............................................................................86Layering with ZIndex...........................................................................................................88Clipping...............................................................................................................................88Custom Layout Containers......................................................................................................90The Two-Step Layout Process ............................................................................................90The UniformGrid.................................................................................................................93Sizing Pages..............................................................................................................................98Scrolling with the ScrollViewer ........................................................................................100Scaling with the Viewbox ..................................................................................................102Full-Screen Mode ..............................................................................................................104The Last Word.........................................................................................................................106■ Chapter 4: Dependency Properties and Routed Events .......................................................107Dependency Properties .........................................................................................................107Defining and Registering a Dependency Property .........................................................108Dynamic Value Resolution ...............................................................................................110Attached Properties...........................................................................................................111The WrapBreakPanel Example.........................................................................................112Routed Events .........................................................................................................................115The Core Element Events..................................................................................................115Event Bubbling ..................................................................................................................118Handled (Suppressed) Events ..........................................................................................120An Event Bubbling Example .............................................................................................120Mouse Handling .....................................................................................................................123Right-Clicks........................................................................................................................123Mouse Movements ............................................................................................................124The Mouse Wheel ..............................................................................................................124Capturing the Mouse ........................................................................................................126A Mouse Event Example ...................................................................................................126Mouse Cursors...................................................................................................................130■ CONTENTSixKeyboard Handling ................................................................................................................131Key Presses........................................................................................................................131Key Modifiers .....................................................................................................................133Focus .................................................................................................................................134The Command Model ............................................................................................................135Building a Command ........................................................................................................136Connecting a Command...................................................................................................137The Last Word.........................................................................................................................139■ Chapter 5: Elements ................................................................................................................141The Silverlight Elements ........................................................................................................141Static Text...............................................................................................................................145Font Properties ..................................................................................................................146Underlining.......................................................................................................................150Runs ...................................................................................................................................151Wrapping Text ...................................................................................................................152Trimming Text ...................................................................................................................153Images ....................................................................................................................................153Image Sizing.......................................................................................................................154Image Errors.......................................................................................................................155Content Controls ....................................................................................................................155The Content Property........................................................................................................157Aligning Content................................................................................................................159Buttons ...................................................................................................................................160The HyperlinkButton ........................................................................................................160The ToggleButton and RepeatButton..............................................................................161The CheckBox ....................................................................................................................161The RadioButton ...............................................................................................................162Tooltips and Pop-Ups ............................................................................................................163Customized Tooltips .........................................................................................................163The Popup..........................................................................................................................165Items Controls ........................................................................................................................167The ListBox........................................................................................................................167The ComboBox ..................................................................................................................169The TabControl..................................................................................................................170■ CONTENTSxText Controls. ...........................................................................................................................171The TextBox . .......................................................................................................................172The PasswordBox . ..............................................................................................................174The AutoCompleteBox. ......................................................................................................174The RichTextBox. ................................................................................................................180Range-Based Controls. ............................................................................................................190The Slider . ...........................................................................................................................191The ProgressBar. .................................................................................................................192Date Controls. ..........................................................................................................................192The Last Word. .........................................................................................................................196■ Chapter 6: The Application Model . .........................................................................................197The Application Class. .............................................................................................................197Accessing the Current Application . ..................................................................................198Application Properties . ......................................................................................................198Application Events . .................................................................................................................199Application Startup . ...........................................................................................................200Initialization Parameters . ..................................................................................................200Application Shutdown . ......................................................................................................203Unhandled Exceptions. ......................................................................................................203Custom Splash Screens. ..........................................................................................................206Binary Resources . ....................................................................................................................210Placing Resources in the Application Assembly ..............................................................210Placing Resources in the Application Package.................................................................213Placing Resources on the Web . .........................................................................................214Class Library Assemblies. ........................................................................................................218Using Resources in an Assembly. ......................................................................................218Downloading Assemblies on Demand .............................................................................219Supporting Assembly Caching . .........................................................................................220The Last Word. .........................................................................................................................224■ Chapter 7: Navigation . .............................................................................................................225Loading User Controls . ...........................................................................................................226Embedding User Controls in a Page . ................................................................................226Hiding Elements . ................................................................................................................228■ CONTENTSxiManaging the Root Visual.................................................................................................228Retaining Page State..........................................................................................................230Browser History .................................................................................................................231Child Windows........................................................................................................................231Designing a ChildWindow................................................................................................233Showing a ChildWindow...................................................................................................234The Frame and Page...............................................................................................................236Frames...............................................................................................................................236URI Mapping......................................................................................................................243Forward and Backward Navigation .................................................................................244Hyperlinks.........................................................................................................................245Pages..................................................................................................................................246Navigation Templates .......................................................................................................249Custom Content Loaders.......................................................................................................250Authentication and Navigation........................................................................................251Creating a Custom Content Loader .................................................................................252Using the Custom Content Loader ..................................................................................254The Last Word.........................................................................................................................255■ Chapter 8: Shapes and Geometries ........................................................................................257Basic Shapes...........................................................................................................................257The Shape Classes .............................................................................................................258Rectangle and Ellipse ........................................................................................................259Sizing and Placing Shapes ................................................................................................261Sizing Shapes Proportionately with a Viewbox...............................................................263Line ....................................................................................................................................265Polyline..............................................................................................................................266Polygon..............................................................................................................................267Line Caps and Line Joins...................................................................................................270Dashes ...............................................................................................................................272Paths and Geometries ............................................................................................................274Line Rectangle and Ellipse Geometries .........................................................................275Combining Shapes with GeometryGroup.......................................................................276Curves and Lines with PathGeometry .............................................................................278■ CONTENTSxiiThe Geometry Mini-Language .........................................................................................283Clipping with Geometry....................................................................................................285Exporting Clip Art ...................................................................................................................287Expression Design .............................................................................................................287Conversion........................................................................................................................288Save or Print to XPS ...........................................................................................................289The Last Word.........................................................................................................................291■ Chapter 9: Brushes Transforms and Bitmaps .....................................................................293Brushes...................................................................................................................................293The LinearGradientBrush Class .......................................................................................294The RadialGradientBrush Class .......................................................................................297The ImageBrush ................................................................................................................299Transparency ..........................................................................................................................300Opacity Masks....................................................................................................................302Making the Silverlight Control Transparent ...................................................................304Transforms ..............................................................................................................................308Transforming Shapes ........................................................................................................310Transforms and Layout Containers .................................................................................312A Reflection Effect .............................................................................................................313Perspective Transforms .........................................................................................................314The PlaneProjection Class ................................................................................................315Applying a Projection ........................................................................................................317Pixel Shaders ...........................................................................................................................318BlurEffect...........................................................................................................................319DropShadowEffect ............................................................................................................319ShaderEffect......................................................................................................................321The WriteableBitmap Class ...................................................................................................322Generating a Bitmap .........................................................................................................322Capturing Content from Other Elements........................................................................325Printing...................................................................................................................................326Printing a Single Element .................................................................................................327Printing Over Multiple Pages............................................................................................329Creating a Print Preview ...................................................................................................332The Last Word.........................................................................................................................334■ CONTENTSxiii■ Chapter 10: Animation ............................................................................................................335Understanding Silverlight Animation...................................................................................335The Rules of Animation.....................................................................................................336Creating Simple Animations..................................................................................................337The Animation Class .........................................................................................................337The Storyboard Class ........................................................................................................338Starting an Animation with an Event Trigger..................................................................339Starting an Animation with Code.....................................................................................339Configuring Animation Properties...................................................................................340Animation Lifetime ...........................................................................................................343Simultaneous Animations ................................................................................................345Controlling Playback .........................................................................................................346Animation Easing ...................................................................................................................348Using an Easing Function.................................................................................................349Easing In and Easing Out ..................................................................................................350Easing Function Classes....................................................................................................351Animation Types Revisited ....................................................................................................354Animating Transforms ......................................................................................................354Animation Perspective Projections..................................................................................357Animating Brushes ............................................................................................................358Animating Pixel Shaders ...................................................................................................360Key-Frame Animation.......................................................................................................361Animations in Code................................................................................................................365The Main Page ...................................................................................................................366The Bomb User Control ....................................................................................................368Dropping the Bombs.........................................................................................................369Intercepting a Bomb .........................................................................................................372Counting Bombs and Cleaning Up..................................................................................374Encapsulating Animations.....................................................................................................376Page Transitions ................................................................................................................376The Base Class ...................................................................................................................377The Wipe Transition..........................................................................................................378Frame-Based Animation........................................................................................................380■ CONTENTSxivAnimation Performance ........................................................................................................384Desired Frame Rate ...........................................................................................................384Hardware Acceleration .....................................................................................................385The Last Word.........................................................................................................................390■ Chapter 11: Sound Video and Deep Zoom..........................................................................391Supported File Types .............................................................................................................391The MediaElement .................................................................................................................392Controlling Playback .........................................................................................................393Handling Errors .................................................................................................................394Playing Multiple Sounds ...................................................................................................394Changing Volume Balance and Position .......................................................................395Playing Video .....................................................................................................................399Client-Side Playlists...........................................................................................................399Server-Side Playlists ..........................................................................................................400Progressive Downloading and Streaming .......................................................................400Adaptive Streaming ...........................................................................................................402Advanced Video Playback......................................................................................................403Video Encoding..................................................................................................................403Encoding in Expression Encoder .....................................................................................404Markers..............................................................................................................................406VideoBrush........................................................................................................................411Video Effects ......................................................................................................................412Webcam and Microphone Input...........................................................................................418Accessing a Capture Device..............................................................................................418Basic Webcam Support.....................................................................................................420Recording Audio Snippets ................................................................................................423Deep Zoom.............................................................................................................................427Creating a Deep Zoom Image Set.....................................................................................429Using a Deep Zoom Image Set in Silverlight...................................................................433The Last Word.........................................................................................................................437■ Chapter 12: Styles and Behaviors ...........................................................................................439Styles.......................................................................................................................................439Defining a Style..................................................................................................................440■ CONTENTSxvApplying a Style .................................................................................................................441Dynamic Styles ..................................................................................................................442Style Inheritance................................................................................................................442Organizing Styles ...............................................................................................................444Automatically Applying Styles by Type ...........................................................................444Behaviors................................................................................................................................445Getting Support for Behaviors..........................................................................................446Triggers and Actions..........................................................................................................447Creating a Behavior ...........................................................................................................457Finding More Behaviors....................................................................................................460The Last Word.........................................................................................................................462■ Chapter 13: Templates and Custom Controls.......................................................................463Template Basics......................................................................................................................463Creating a Template ..........................................................................................................464Reusing Control Templates ..............................................................................................465The ContentPresenter.......................................................................................................466Template Bindings ............................................................................................................467Setting Templates Through Styles ...................................................................................468Reusing Colors ...................................................................................................................470The Parts and States Model ...................................................................................................470Understanding States with the Button Control ..............................................................472Showing a Focus Cue ........................................................................................................476Transitions .........................................................................................................................477Understanding Parts with the Slider Control..................................................................482Creating Templates for Custom Controls.............................................................................486Planning the FlipPanel Control........................................................................................487Creating the Solution ........................................................................................................487Starting the FlipPanel Class ..............................................................................................488Adding the Default Style with Generic.xaml ...................................................................489Choosing Parts and States ................................................................................................491Starting the Default Control Template ............................................................................493The FlipButton Control.....................................................................................................494Defining the State Animations .........................................................................................495Wiring Up the Elements in the Template ........................................................................497■ CONTENTSxviUsing the FlipPanel ...........................................................................................................499Using a Different Control Template ................................................................................500The Last Word.........................................................................................................................502■ Chapter 14: Browser Integration ............................................................................................503Interacting with HTML Elements..........................................................................................504Getting Browser Information ...........................................................................................505The HTML Window...........................................................................................................506Popup Windows ................................................................................................................507Inspecting the HTML Document .....................................................................................508Manipulating an HTML Element .....................................................................................510Handling JavaScript Events ..............................................................................................515Code Interaction....................................................................................................................517Calling Browser Script from Silverlight............................................................................518Calling Silverlight Methods from the Browser ................................................................518Instantiating Silverlight Objects in the Browser .............................................................520Combining Silverlight and HTML Content ..........................................................................522Sizing the Silverlight Control to Fit Its Content ..............................................................522Placing the Silverlight Control Next to an HTML Element ............................................523Securing HTML Interoperability ...........................................................................................526The Last Word.........................................................................................................................527■ Chapter 15: ASP.NET Web Services........................................................................................529Building Web Services for Silverlight ....................................................................................529Creating a Web Service .....................................................................................................529Adding a Service Reference ..............................................................................................531Calling the Web Service ....................................................................................................533Configuring the Web Service URL....................................................................................536Using a Busy Indicator ......................................................................................................537Web Service Data Types.........................................................................................................539Custom Data Classes.........................................................................................................539Web Service Type Sharing ................................................................................................540More Advanced Web Services ...............................................................................................545Cross-Domain Web Service Calls.....................................................................................546Monitoring the Network Connection ..............................................................................548Using ASP.NET Platform Services ....................................................................................549■ CONTENTSxviiDuplex Services.......................................................................................................................551Configuring the Service.....................................................................................................551The Interfaces ....................................................................................................................552The Service........................................................................................................................554The Client ...........................................................................................................................555The Last Word.........................................................................................................................557■ Chapter 16: Data Binding........................................................................................................559Binding to Data Objects .........................................................................................................559Building a Data Object ......................................................................................................560Displaying a Data Object with DataContext ...................................................................561Storing a Data Object as a Resource ................................................................................563Null Values and Failed Bindings ......................................................................................564Editing with Two-Way Bindings.......................................................................................564Change Notification ..........................................................................................................566Building a Data Service .....................................................................................................567Calling a Data Service........................................................................................................571Binding to a Collection of Objects.........................................................................................572Displaying and Editing Collection Items.........................................................................573Inserting and Removing Collection Items.......................................................................576Binding to a LINQ Expression ..........................................................................................577Master-Details Display......................................................................................................579Validation ...............................................................................................................................583Error Notifications.............................................................................................................583The BindingValidationFailed Event.................................................................................586The Validation Class..........................................................................................................587Creating Data Objects with Built-in Validation ..............................................................588Data Formatting and Conversion .........................................................................................592String Formatting ..............................................................................................................592Value Converters ...............................................................................................................594Formatting Strings with a Value Converter .....................................................................595Creating Objects with a Value Converter ........................................................................597Applying Conditional Formatting ....................................................................................599Data Templates......................................................................................................................602Separating and Reusing Templates .................................................................................604■ CONTENTSxviiiMore Advanced Templates...............................................................................................604Changing Item Layout.......................................................................................................606The Last Word.........................................................................................................................607■ Chapter 17: Data Controls ......................................................................................................609Better Data Forms ..................................................................................................................610The Goal: Data Class Markup ...........................................................................................610The Label...........................................................................................................................611The DescriptionViewer .....................................................................................................613The ValidationSummary...................................................................................................615Data Annotations....................................................................................................................617Raising Annotation Errors ................................................................................................618The Annotation Attributes................................................................................................619The DataGrid ..........................................................................................................................625Creating a Simple Grid ......................................................................................................626How Columns Are Resized and Rearranged ...................................................................628Defining Columns .............................................................................................................629Formatting and Styling Columns .....................................................................................632Controlling Column Width ...............................................................................................634Formatting Rows ...............................................................................................................636Row Details ........................................................................................................................638Freezing Columns .............................................................................................................639Selection............................................................................................................................640Sorting ...............................................................................................................................641DataGrid Editing.....................................................................................................................642Editing with Templates .....................................................................................................642Validation and Editing Events ..........................................................................................643The PagedCollectionView......................................................................................................646Sorting ...............................................................................................................................647Filtering ..............................................................................................................................647Grouping ............................................................................................................................648Paging ................................................................................................................................650The TreeView ..........................................................................................................................653Filling a TreeView ..............................................................................................................653A Data-Bound TreeView ...................................................................................................653The Last Word.........................................................................................................................656■ CONTENTSxix■ Chapter 18: File Access............................................................................................................657Isolated Storage ......................................................................................................................658The Scope of Isolated Storage ..........................................................................................658What to Put in Isolated Storage ........................................................................................659Using Isolated Storage ...........................................................................................................659Opening an Isolated Store ................................................................................................659File Management...............................................................................................................660Writing and Reading Data.................................................................................................661Requesting More Space ....................................................................................................663Storing Objects with XmlSerializer ..................................................................................665Storing Application Settings .............................................................................................668Accessing Files Outside of Isolated Storage .........................................................................669Reading Files with OpenFileDialog..................................................................................670Writing Files with SaveFileDialog ....................................................................................672Transmitting Files with a Web Service.............................................................................672Dragging and Dropping Files ...........................................................................................678The Last Word.........................................................................................................................681■ Chapter 19: Multithreading ....................................................................................................683Understanding Multithreading .............................................................................................683The Goals of Multithreading.............................................................................................684The DispatcherTimer ........................................................................................................685The Thread Class ....................................................................................................................685Marshaling Code to the User Interface Thread...............................................................687Creating a Thread Wrapper ..............................................................................................689Creating the Worker Class ................................................................................................691Using the Thread Wrapper ...............................................................................................692Cancellation Support ........................................................................................................694The BackgroundWorker.........................................................................................................696Creating the BackgroundWorker .....................................................................................696Running the BackgroundWorker .....................................................................................697Tracking Progress ..............................................................................................................700Supporting Cancellation...................................................................................................702The Last Word.........................................................................................................................704■ CONTENTSxx■ Chapter 20: Networking . ..........................................................................................................705Interacting with the Web . .......................................................................................................706Cross-Domain Access . .......................................................................................................706HTML Scraping. ..................................................................................................................708REST and Other Simple Web Services . .............................................................................712Using Network Credentials. ...............................................................................................717Processing Different Types of Data. .......................................................................................717XML......................................................................................................................................717Services That Return XML Data . .......................................................................................718Services That Require XML Data. ......................................................................................725Services That Return SOAP Data. ......................................................................................727Services That Return JSON Data . ......................................................................................728RSS .......................................................................................................................................731Sockets......................................................................................................................................733Understanding Sockets and TCP . .....................................................................................734The Policy Server . ...............................................................................................................736The Messaging Server . .......................................................................................................740The Messenger Client. ........................................................................................................744Local Connections. ..................................................................................................................749Sending a Message . ............................................................................................................750Receiving a Message. ..........................................................................................................751The Last Word. .........................................................................................................................752■ Chapte

 2021-05-11 21:38:44 |  140 | Naser


Lynn Beighley photo

دانلود کتاب jQuery For Dummies
Author: Lynn Beighley
Pages: 364
دوره  آموزش Jquery
jQuery پرکاربردترین کتابخانه ی زبان JavaScript است که با استفاده از افزونه های آن (با افزونه نویسی) می توانید به قابلیت های Joomla، Drupal، AJAX و WordPress افزوده و آن ها را به صورت سفارشی مطابق نیاز خود تنظیم نمایید. فرض بر اینکه هیچ تجربه ای در زمینه ی برنامه نویسی ندارید، نگارنده ی این کتاب (Lynn Beighley) شما را از سطح پایه تا پیشرفته ی کار با کتابخانه ی jQuery همراهی می کند.
با مطالعه ی این کتاب خواهید دید که چگونه کتابخانه ی jQuery با ویژگی های برجسته ای نظیر کم حجم، کاربر پسند بودن و آسانی در استفاده خود را از دیگر کتابخانه ی محبوب JavaScript متمایز می سازد.
این راهنمای آموزشی که با سبک نوشتاری کتاب های for Dummies (برای تازه واردان) تنظیم شده، به شما نشان می دهد چگونه می توان قابلیت تعامل (interactivity) را به وب سایت یا وبلاگ ورد پرس خود از جمله photo browser ها، منوها، پیمایش بین تبها (tab-based navigation)، sidepanel های کشویی، نمایش های اسلایدی (sideshow ها)، افکت های انتقال یا transition، افکت های محو شدن، twitter feeds (خبرخوان تویتر) و غیره ... اشاره کرد.   
jQuery is free open source software that allows you to extend and customize Joomla! Drupal AJAX and WordPress via plug-ins. Assuming no previous programming experience Lynn Beighley takes you through the basics of jQuery from the very start. Youll discover how the jQuery library separates itself from other JavaScript libraries through its ease of use compactness and friendliness if youre a beginner programmer. Written in the easy-to-understand style of the For Dummies brand this book demonstrates how you can add unique and exciting interactivity to a Web site or WordPress blog including photo browsers menus tab-based navigation sliding sidepanels slideshows transition effects fade effects Twitter feeds and much much more!



ISBN:
978-0-470-58445-3


Year:
2010


Pages:
360


Language:
English


File size:
15.9 MB


File format:

PDF




Introduction ................................................................ 1Part I: Getting Started with jQuery ............................... 5Chapter 1: Getting Up and Running with jQuery ...........................................................7Chapter 2: Accessing HTML Elements ..........................................................................21Chapter 3: Selecting HTML Elements Attributes and Positions...............................35Chapter 4: Managing Events ...........................................................................................51Part II: Affecting Elements with Effects ...................... 69Chapter 5: Playing Hide-and-Seek with Web Page Elements ......................................71Chapter 6: Sliding and Fading Web Page Elements .....................................................91Chapter 7: Animating Web Page Elements .................................................................107Part III: Manipulating Your Web Page ..................... 123Chapter 8: Making Web Page Content Dynamic.........................................................125Chapter 9: Replacing Removing and Copying Web Page Elements .......................143Part IV: Using Plug-ins and Widgets ......................... 155Chapter 10: Understanding Plug-ins ............................................................................157Chapter 11: Playing with Image Effects .......................................................................169Chapter 12: Jazzing Up Forms ......................................................................................181Chapter 13: Toying with Page Layout .........................................................................191Chapter 14: Incorporating a User Interface ................................................................203Part V: Building AJAX Applications .......................... 217Chapter 15: Understanding How AJAX Works with jQuery ......................................219Chapter 16: Using AJAX Plug-ins ..................................................................................231Part VI: Integrating jQuery withContent Management Systems .................................. 243Chapter 17: Cool Image Effects with jQuery and Drupal ..........................................245Chapter 18: Integrating jQuery and Joomla! ...............................................................259Chapter 19: Building Better Blogs with jQuery and WordPress ..............................273
Part VII: The Part of Tens ......................................... 283Chapter 20: Ten Don’t-Miss Plug-ins............................................................................285Chapter 21: Ten Design and Code Tricks....................................................................297Chapter 22: Ten jQuery Resources ..............................................................................307Index ...................................................................... 319

 2021-05-13 00:14:08 |  155 | Naser

Benjamin Perkins www.it- photo

Windows Azure® and ASP.NET MVC Migration
Author: Benjamin Perkins www.it-
Pages: 264
دوره آموزش MVC
 
CHAPTER1: MIGRATING FROM ASP.NET TO ASP.NET MVC 4 2

 2021-05-10 01:19:30 |  140 | Naser

Gaurav Vaish photo
 2021-05-08 02:02:37 |  153 | Naser

jonathan photo

Ubuntu Hacks
Author: jonathan
Pages: 348
credits
preface
getting started
the linux desktop
multi media
mubile ubuntu
x11
package management
security
administration
virtualization and emulation
small office/home office server

 2021-05-10 10:34:03 |  152 | Naser

Brian Gallagher and Lisa Brownsword photo

آموزش RUP و CMM در مهندسی نرم افزار
Author: Brian Gallagher and Lisa Brownsword
Pages: 169
برنامه‌ نویسان، طراحان، تحلیلگران، معماران، تست‌کنندگان، مهندسین فرایند و به طورکلی کلیه اعضای فنّی تیم تولید نرم‌افزار که نیاز به تعامل حضوری یا غیرحضوری ایده‌های عناصر و فراورده‌های نرم‌افزاری یا مسائل تولید از دیدگاه خود با سایر تخصص‌های تیم دارند.
برای دانلود کتاب روی نام کتاب کلیک کنید
دوره آموش UML
دوره آموزش RUP

 2021-05-08 02:02:11 |  126 | Naser

Mike Liu photo

WCF 4.5 Multi-Layer Services Development with Entity Framework
Author: Mike Liu
Pages: 394
Chapter 1: Web Services and Windows Communication Foundation 7
What is SOA? 8
Web services 8
What is a web service? 8
WSDL 10
Web service proxy 10
SOAP 11
Web services: standards and specifications 11
WS-I Profiles 12
WS-Addressing 12
WS-Security 12
WS-ReliableMessaging 12
WS-Coordination and WS-Transaction 13
Windows Communication Foundation (WCF) 13
What is WCF? 14
Why is WCF used for SOA? 14
WCF architecture 16
Basic WCF concepts – WCF ABCs 17
Address 17
Binding 17
Contract 18
Endpoint 22
Behavior 23
Hosting 23
Channels 24
Metadata 25
WCF production and development environments 25
Summary 26
Chapter 2: Implementing a Basic HelloWorld WCF Service 27
Creating the HelloWorld solution and project 27
Creating the HelloWorldService service contract interface 36
Implementing the HelloWorldService service contract 38
Hosting the WCF service in IIS Express 39
Creating the host application 39
Testing the host application 42
IIS Express 43
Modifying the web.config file 44
Starting the host application 46
Creating a client to consume the WCF service 47
Creating the client application project 47
Generating the proxy and configuration files 48
Customizing the client application 49
Running the client application 50
Setting the service application to AutoStart 51
Summary 52
Chapter 3: Hosting and Debugging the HelloWorld WCF Service 53
Hosting the HelloWorld WCF service 54
Hosting the service in ASP.NET Development Server 54
Hosting the service in a managed application 55
Hosting the service in a console application 56
Consuming the service hosted in a console application 59
Hosting the service in a Windows service 60
Hosting the service in the Internet Information Services server using the
HTTP protocol 60
Preparing the folders and files 61
Turn on Internet Information Services 63
Creating the IIS application 63
Starting the WCF service in IIS 64
Testing the WCF service hosted in IIS 64
Hosting the service in the Internet Information Services server using
the TCP protocol 65
Benefits of hosting a WCF service using the TCP protocol 65
Preparing the folders and files 66
Enabling the non-HTTP WCF activation for the hosting machine 69
Creating the IIS application 70
Testing the WCF service hosted in IIS using the TCP protocol 71
Other WCF service hosting options 72
Debugging the HelloWorld WCF service 72
Debugging from the client application 72
Starting the debugging process 73
Debugging on the client application 74
Stepping into the WCF service 75
Directly debugging the WCF service 76
Starting the WCF service in debugging mode 76
Starting the client application 77
Attaching to a running WCF service process 77
Running the WCF service and client applications in non-debugging mode 77
Debugging the WCF service hosted in IIS 78
Summary 79
Chapter 4: Implementing a WCF Service in the Real World 81
Why layer a service? 82
Creating a new solution and project using WCF templates 83
Creating the WCF service project 83
Creating the service interface layer 84
Creating the service interfaces 85
Creating the data contracts 86
Implementing the service contracts 88
Modifying the app.config file 91
Testing the service using WCF Test Client 93
Testing the service using our own client 97
Adding a business logic layer 104
Adding the business domain object project 104
Adding the business logic project 106
Calling the business logic layer from the service interface layer 110
Testing the WCF service with a business logic layer 114
Summary 116
Chapter 5: Adding Database Support and Exception Handling 117
Adding a data access layer 117
Creating the data access layer project 118
Calling the data access layer from the business logic layer 120
Preparing the database 122
Adding the connection string to the configuration file 123
Querying the database (GetProduct) 124
Testing the GetProduct method 126
Updating the database (UpdateProduct) 129
Adding error handling to the service 132
Adding a fault contract 133
Throwing a fault contract exception 135
Updating the client program to catch the fault exception 137
Testing the fault exception 141
Summary 142
Chapter 6: LINQ: Language Integrated Query 143
What is LINQ? 144
Creating the test solution and project 144
Datatype var 145
Automatic properties 146
Object initializer 147
Collection initializer 148
Anonymous types 149
Extension methods 150
Lambda expressions 156
Built-in LINQ extension methods and method syntax 159
LINQ query syntax and query expression 160
Built-in LINQ operators 163
Summary 165
Chapter 7: LINQ to Entities: Basic Concepts and Features 167
ORM: Object-Relational Mapping 168
Entity Framework 169
LINQ to Entities 170
Comparing LINQ to Entities with LINQ to Objects 171
LINQ to SQL 172
Comparing LINQ to SQL with LINQ to Entities 173
Creating a LINQ to Entities test application 174
Creating the data model 175
Adding a LINQ to Entities item to the project 175
Generated LINQ to Entities classes 181
Querying and updating a database table 182
Querying records 182
Updating records 183
Inserting records 184
Deleting records 184
Running the program 185
Viewing generated SQL statements 187
Viewing SQL statements using ToString 187
Viewing SQL statements using SQL Profiler 189
Deferred execution 190
Checking deferred execution with SQL Profiler 190
Deferred execution for singleton methods 192
Deferred execution for singleton methods within sequence expressions 193
Deferred (lazy) loading versus eager loading 197
Lazy loading by default 198
Eager loading with the Include method 199
Comparing lazy loading and eager loading 201
Joining two tables 201
Querying a view 202
Summary 203
Chapter 8: LINQ to Entities: Advanced Concepts and Features 205
Calling a stored procedure 205
Mapping a stored procedure to a new entity class 206
Modeling a stored procedure 206
Querying a stored procedure 207
Mapping a stored procedure to an existing entity class 208
Inheritance 212
LINQ to Entities Table per Hierarchy inheritance 212
Modeling the BaseCustomer and USACustomer entities 213
Modeling the UKCustomer entity 216
Generated classes with TPH inheritance 217
Testing the TPH inheritance 217
LINQ to Entities Table per Type inheritance 220
Preparing database tables 221
Modeling USACustomer1 and UKCustomer1 entities 222
Generated classes with TPT inheritance 223
Testing the TPT inheritance 223
Handling simultaneous (concurrent) updates 227
Detecting conflicts using a data column 228
The Concurrency Mode property 228
Adding another entity data model 229
Writing the test code 231
Testing the conflicts 232
Turning on concurrency control 232
Detecting conflicts using a version column 236
Adding a version column 236
Modeling the Products table with a version column 237
Writing the test code 238
Testing the conflicts 239
Transaction support 239
Implicit transactions 240
Explicit transactions 241
Summary 244
Chapter 9: Applying LINQ to Entities to a WCF Service 245
Creating the LINQNorthwind solution 246
Modeling the Northwind database 246
Creating the business domain object project 247
Using LINQ to Entities in the data access layer 249
Adding a reference to the BDO project 249
Creating UpdateProduct in the data access layer 251
Creating the business logic layer 253
Creating the service interface layer 254
Testing the service with the WCF Test Client 260
Testing concurrency with our own client 262
Creating the test client 262
Implementing the GetProduct functionality 264
Implementing the UpdateProduct functionality 265
Testing the GetProduct and UpdateProduct operations 269
Testing concurrent update manually 271
Testing concurrent updates automatically 274
Summary 280
Chapter 10: Distributed Transaction Support of WCF 281
Creating the DistNorthwind solution 282
Hosting the WCF service in IIS 284
Testing the transaction behavior of the WCF service 285
Creating a client to call the WCF service sequentially 286
Testing the sequential calls to the WCF service 293
Wrapping the WCF service calls in one transaction scope 295
Testing multiple database support of the WCF service 296
Creating a new WCF service 297
Calling the new WCF service in the client application 298
Testing the WCF service with two databases 303
Enabling distributed transaction support 306
Enabling transaction flow in service binding 306
Enabling transaction flow on the service hosting application 307
Modifying the service operation contract to allow a transaction flow 308
Modifying the service operation implementation to require a
transaction scope 309
Understanding the distributed transaction support of a WCF service 310
Testing the distributed transaction support of the WCF service 311
Configuring the Microsoft Distributed Transaction Coordinator 311
Configuring the firewall 313
Propagating a transaction from the client to the WCF service 314
Testing distributed transaction support with one database 314
Testing the distributed transaction support with two databases 315
Tradeoffs of distributed transactions 319
Summary 319
Chapter 11: WCF Security 321
WCF security components 321
WCF authorization 322
WCF auditing 322
WCF transfer security 323
WCF security modes 323
WCF transport security 324
WCF message security 325
WCF mixed security 325
WCF transport and message (both) security 325
Authentication options for transport security 325
Authentication options for message security 326
Hosting a WCF service using Basic Authentication 327
Setting up the service 327
Enabling the Basic Authentication feature 328
Configuring Basic Authentication on IIS 329
Configuring the HTTPS protocol 331
Configuring Basic Authentication on the service 333
Testing the service with Basic Authentication 336
Hosting a WCF service with Windows Authentication 338
WCF Security Guidance 340
Summary 340
Chapter 12: Extending WCF Services 341
WCF runtime architecture 341
Why extend WCF services? 343
WCF extension points 343
Client-side extension points 344
Service-side extension points 345
Extending a WCF service 345
WCF extension classes 346
WCF behavior classes 347
WCF behavior element classes 348
Applying the extensions 348
Extending HelloWorldService 349
Setting up the service 349
Creating the extension project 350
Creating an extension class 351
Creating a behavior class 354
Creating a behavior element class 356
Applying the extension to HelloWorldService 358
Testing the extended HelloWorldService 359
Summary 361
Index 363
 

 2021-05-08 05:18:47 |  118 | Naser

Gaston C. Hillar photo
 2021-05-08 21:54:45 |  117 | Naser

Ivor Horton photo

کتاب آموزش جاوا Ivor Hortons Beginning Java
Author: Ivor Horton
Pages: 1154
کتاب آموزش جاوا Ivor Hortons Beginning Java آنقدر کاربردی و پرطرفدار است که در زمینه ی آموزش مبانی برنامه نویسی و مقدمات یکی از معروف ترین اساتید در این حورزه شناخته می شود. آخرین ویرایش این کتاب آموزش جاوا خواه شما یک برنامه نویس تازه وارد باشید و خواه یک توسعه دهنده ی مجرب که تازه به عرصه ی برنامه نویسی با جاوا ورود می کنید، با مطالعه ی کتاب آموزش جاوا نام برده نحوه ی ساخت اپلیکیشن های تمام عیار کاربردی با پلت فرم Java SE 7 را به راحتی فراخواهید گرفت. نگارنده ی اثر، علاوه بر تشریح مبانی، امکانات جدید نظیر افزونه ها و کلاس های جاوا، فریم ورک توسعه ی اپلیکیشن های مبتنی بر جاوا Swing را به شما آموخته، همه ی توضیحات خود را به روش کاملا منحصربفرد، قابل فهم که تازه واردان دوست دارند، ارائه می دهد.
 




978-0470404140

 2021-05-11 17:19:51 |  131 | Naser

Mitch Garnaat photo
 2021-05-08 02:01:37 |  123 | Naser

Mark Reynolds photo

Xamarin Essentials
Author: Mark Reynolds
Pages: 234
Xamarin Essentials

 2021-05-08 05:18:37 |  170 | Naser

Allen G.Taylor photo

Crystal Reports® 2008 For Dummies®
Author: Allen G.Taylor
Pages: 411
Introduction..................................................................1About This Book...............................................................................................1Conventions Used in This Book .....................................................................1What You’re Not to Read.................................................................................2Foolish Assumptions .......................................................................................2How This Book Is Organized...........................................................................3Part I: Reporting Basics .........................................................................3Part II: Moving Up to Professional-Quality Reports ...........................3Part III: Advanced Report Types and Features...................................3Part IV: Crystal Reports in the Enterprise ..........................................3Part V: Publishing Your Reports...........................................................4Part VI: The Part of Tens .......................................................................4Icons Used in This Book..................................................................................4Where to Go from Here....................................................................................5Part I: Reporting Basics.................................................7Chapter 1: Transforming Raw Data into Meaningful Information . . . . .9Major Features of Crystal Reports 2008........................................................9Formatting a report..............................................................................10Generating barcodes............................................................................11Enhancing a report with formulas and custom functions...............11Getting visual with charts and maps .................................................11Xcelsius integration .............................................................................12Adobe Flash integration ......................................................................12Displaying a report...............................................................................12Distributing a report ............................................................................12Supplying Crystal Reports with data .................................................13The Lone Edition of Crystal Reports 2008 ..................................................13Viewing a Report ............................................................................................13Reading a printed report .....................................................................13Viewing a report with Crystal Reports ..............................................14Viewing a report on a LAN or on the Web.........................................16Chapter 2: Create a Simple Report Right Now! . . . . . . . . . . . . . . . . . . .17First Things First: Finding the Sample Database........................................18Starting Crystal Reports 2008.......................................................................18Creating a Report with the Blank Report Option.......................................20Allocating more space to the layout ..................................................24Introducing your report.......................................................................25Choosing the fields that appear in your report................................27
Improving the readability of page headers .......................................29Previewing the report ..........................................................................30Page footers carry useful information...............................................32Wrapping things up with a report footer ..........................................34Recording helpful information about your report ...........................34Printing a Report ............................................................................................36Where to Go from Here..................................................................................36Chapter 3: Report Design Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . .37Defining an Effective Report Design ............................................................37Defining Your Audience.................................................................................37Defining the Report’s Purpose......................................................................38Choosing Content for Your Report ..............................................................39Choosing the Report Appearance................................................................39Making a good first impression ..........................................................40Deciding how best to present the information.................................40Choosing graphic elements for your report .....................................41Style communicates meaning too .....................................................41Making sure your report conveys your message .............................42Chapter 4: Starting Your Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43Using the Report Creation Wizard ...............................................................43Creating a report with the Standard Report Creation Wizard........44Using other report-creation wizards..................................................49Starting with a Blank Report.........................................................................49Connecting Your Report to Its Data Source................................................50Accessing database files directly .......................................................51Connecting to ODBC data sources.....................................................51Retrieving data with SQL.....................................................................52Reporting on data in OLE DB data sources.......................................53Which interface should you use? .......................................................53Part II: Moving Up to Professional-Quality Reports ........55Chapter 5: Pulling Specific Data from a Database . . . . . . . . . . . . . . . .57Get Data Quickly with Select Expert............................................................57Using Formulas to Retrieve Data..................................................................64Using Parameter Fields to Retrieve Data at Runtime ................................66Step 1: Creating a report that shows everything..............................67Step 2: Giving the user the power to decide what to show ............70Speed retrievals with indexes.............................................................72Changing parameter values to change the report ...........................72Troubleshooting Tips When Retrieving Data .............................................73
Chapter 6: Sorting Grouping and Totaling Report Data . . . . . . . . . . .75Sorting Report Data .......................................................................................75Sorting based on multiple fields.........................................................77Sorting and performance.....................................................................81Adding Sort Controls to a Report ................................................................82Grouping Related Items.................................................................................85Calculating Percentages ................................................................................89Drilling Down for Detail .................................................................................90Keeping Track of Things with Running Totals............................................94Troubleshooting Sorting Grouping and Totaling Problems....................97Sorting problems and how to solve them .........................................98Unusual grouping options ...................................................................98Getting the right totals ........................................................................99Chapter 7: Mastering Report Sections . . . . . . . . . . . . . . . . . . . . . . . . . .101Changing the Size of a Section....................................................................101Formatting with the Section Formatting Menu ........................................103Using Section Expert for Easy Section Formatting ..................................104Common tab Section Expert ............................................................105Paging tab Section Expert ................................................................106Color tab Section Expert ..................................................................107Placing Groups Where You Want Them.....................................................110Starting each group at the top of its own page ..............................110Printing totals at the bottom of a page............................................112Restarting page numbering at the beginning of each group.........113Hiding Details with Summary and Drill-Down Reports ...........................113Generating Barcodes ...................................................................................114Creating Mailing Labels ...............................................................................117Saving Money on Postage with a ZIP Sort.................................................120Chapter 8: Enhancing Your Report’s Appearance . . . . . . . . . . . . . . . .123Absolute Formatting ....................................................................................124Setting the fonts and their formatting for emphasis......................124Adding graphical elements for emphasis........................................128Conditional Formatting Using the Format Editor.....................................130Creating Emphasis with Highlighting Expert ...........................................132Adding Pictures to Your Report .................................................................134Aligning Preprinted Forms..........................................................................136Adding Text from a File ...............................................................................136Formatting Options......................................................................................137Special Fields Contain Report Metadata ...................................................139Raising a Red Flag with Report Alerts .......................................................139Using Report Templates to Save Time and Effort ....................................142Applying a template to a report .......................................................143Applying a template to an existing report.......................................143Applying a template to a report you’re creating ............................145
Part III: Advanced Report Types and Features .............147Chapter 9: Displaying Your Top Ten (Or Top N) with Group Sort . . . .149Sorting Groups Based on Performance .....................................................149Starting a Top N Report .....................................................................150Displaying a group total.....................................................................154Hiding the details ...............................................................................155Removing page breaks.......................................................................157Going with the Percentages ........................................................................160What if you want the top 17 instead of the top 5? .........................161A Choice of Group Sorts..............................................................................164Troubleshooting Group Sort Problems .....................................................165Chapter 10: Adding Formulas to Reports . . . . . . . . . . . . . . . . . . . . . . . .167Formula Overview and Syntax ...................................................................167Lessening the Workload with Functions ...................................................168Creating a Custom Function in Formula Workshop.................................169Formula Editor....................................................................................173Formula Expert ...................................................................................175SQL Expression Editor .......................................................................177Selection formulas..............................................................................177Formatting formulas...........................................................................181Changing and Deleting Formulas ...............................................................182Data Types ....................................................................................................182Simple data types ...............................................................................182Range data types ................................................................................184Array data types .................................................................................184Variables in Formulas ..................................................................................185Declaring a variable ...........................................................................185Assigning a value to a variable .........................................................186Control Structures........................................................................................186If-Then-Else..........................................................................................186Select Case ..........................................................................................187For loop................................................................................................187While Do loop .....................................................................................188Do While loop .....................................................................................189Chapter 11: Creating Reports within a Report . . . . . . . . . . . . . . . . . . .191Combining Unrelated Reports ....................................................................191Underlay formatting for side-by-side location of subreport.........195Drilling down in a subreport .............................................................196Linking a Subreport to a Primary Report..................................................197On-Demand Subreports Boost Efficiency..................................................203Passing Data between Reports...................................................................204Troubleshooting Subreport Problems.......................................................205
Chapter 12: Combining Report Elements with OLE . . . . . . . . . . . . . . .207Overview of OLE...........................................................................................207Static OLE Objects .......................................................................................208Inserting a static OLE object into a report......................................208Making a static OLE object editable ................................................210Embedded OLE Objects ..............................................................................212Embedding an OLE object into a report ..........................................212Linked OLE Objects .....................................................................................214Embedding or Linking an Object Taken from a File.................................217Integrating Shockwave Flash Objects into Your Reports........................217Chapter 13: Creating and Updating OLAP Reports . . . . . . . . . . . . . . . .219What’s OLAP and Why Might You Need It? ..............................................219Who uses OLAP?.................................................................................220Creating multidimensional views .....................................................220Connecting to an OLAP data source ................................................221OLAP Reporting with Crystal Reports ......................................................221Operating on OLAP grid objects.......................................................222Creating a three-dimensional report................................................222Updating an OLAP Report...........................................................................232Formatting Data in an OLAP Report ..........................................................233Changing a dimension’s background color.....................................234Creating an alias for a dimension .....................................................235Formatting grid lines..........................................................................236Labeling dimensions ..........................................................................237Changing Data Appearance in an OLAP Report .......................................238Showing and hiding dimensions.......................................................239Adding totals to an OLAP grid ..........................................................240Pivoting an OLAP grid........................................................................240Reordering fields ................................................................................241Sorting data.........................................................................................242Filtering data .......................................................................................243Making calculations ...........................................................................243Chapter 14: Using Cross-Tab Reports to Mine Your Data . . . . . . . . . .245Creating a Cross-Tab Object to Summarize All Report Data ..................245Summarizing the Contents of a Group with a Cross-Tab ........................249Making Calculations within a Cross-Tab Row or Column .......................255Enhancing the Appearance and Readability of a Cross-Tab Object ......256Changing the width and height of cross-tab cells ..........................256Formatting entire rows and columns...............................................257Formatting individual fields ..............................................................257Suppressing selected cross-tab data ...............................................258Printing cross-tabs that span multiple pages .................................258
Chapter 15: Enhancing Reports with Charts . . . . . . . . . . . . . . . . . . . . .259Using Chart Expert.......................................................................................259Type tab...............................................................................................260Data tab................................................................................................260Axes tab ...............................................................................................261Options tab..........................................................................................262Color Highlight tab .............................................................................263Text tab................................................................................................263Creating a Chart ...........................................................................................263Drilling down from a chart ................................................................266Changing a chart.................................................................................267Choosing the Best Chart Type for Your Data ...........................................267Side-by-side bar chart ........................................................................267Percent bar chart ...............................................................................268Line chart ............................................................................................268Area chart............................................................................................269Pie chart ..............................................................................................270Doughnut chart...................................................................................2703-D riser chart .....................................................................................2713-D surface chart ................................................................................272XY scatter chart..................................................................................272Radar chart .........................................................................................273Bubble chart .......................................................................................273Stock chart ..........................................................................................274Numeric axis chart .............................................................................275Gauge chart .........................................................................................276Gantt chart ..........................................................................................276Funnel chart ........................................................................................277Histogram ............................................................................................278Different Chart Layouts for Different Data Types ....................................278Seeing How Chart Placement Affects the Data It Represents.................280Troubleshooting Chart Problems ..............................................................281Selecting data to make a chart readable and meaningful .............281The placement of chart elements matters......................................282Chapter 16: Adding Geographic Detail with Maps . . . . . . . . . . . . . . .283Choosing the Right Crystal Reports Map .................................................283Map layouts.........................................................................................284Map types............................................................................................284Map placement ...................................................................................286Creating a Map Step by Step.......................................................................286Creating an advanced layout map....................................................286Creating a Group layout map............................................................288Creating a Cross-Tab layout map .....................................................289Creating an OLAP layout map...........................................................290Including maps in subreports...........................................................291Changing maps ...................................................................................291Troubleshooting Map Problems.................................................................291
Chapter 17: Interactivity Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .293Crystal Xcelsius Overview ..........................................................................293Adding Xcelsius Capability to a Report ....................................................294Creating an SWF file with Crystal Xcelsius......................................295Embedding your Crystal Xcelsius model in a Crystal report .......298Enhancing a Report with the Tasteful Use of Flash .................................300Viewing Flash visualizations .............................................................300Dynamic interaction with a report using a Parameter panel........300Part IV: Crystal Reports in the Enterprise ....................303Chapter 18: Crystal Reports Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . .305Connecting to Data Sources........................................................................306Connecting directly or indirectly .....................................................306Using Business Views to simplify connectivity ..............................306Formatting Reports with Crystal Reports Developer..............................307Providing Platform Services .......................................................................307Publishing and distributing reports.................................................307Providing security ..............................................................................308Managing the system .........................................................................308Useful Management Tools...........................................................................309Application Services....................................................................................309Web Services.................................................................................................309Viewing and Interacting with Reports .......................................................310Chapter 19: BusinessObjects Enterprise Repository . . . . . . . . . . . . .311Adding Folders to Your Repository ...........................................................312Storing Your Valuables in BusinessObjects Enterprise Repository ......312Adding text and bitmapped objects to the Repository.................313Adding custom functions to the Repository...................................313Adding SQL commands to the Repository......................................314Using Repository Objects in a Report .......................................................314Adding text objects and images .......................................................314Adding custom functions ..................................................................315Adding SQL commands .....................................................................315Modifying a Repository Object ..................................................................315Deciding Whether to Update Reports Automatically..............................317Deleting Objects from the Repository.......................................................318Chapter 20: Navigating with Report Parts . . . . . . . . . . . . . . . . . . . . . . .319Understanding Report Parts Navigation ...................................................319Using Report Parts to Navigate a Report ..................................................320Using the Report Parts Drill-down method.....................................321Using the Another Report Object method ......................................325
Part V: Publishing Your Reports .................................327Chapter 21: Sending Your Reports Out into the World . . . . . . . . . . . .329Printing Your Report....................................................................................329Faxing a Report.............................................................................................330Exporting a Report.......................................................................................331Export format types ...........................................................................331Export destinations............................................................................334Troubleshooting Output Problems............................................................342Chapter 22: Displaying Reports Online . . . . . . . . . . . . . . . . . . . . . . . . .343Exporting to a Static HTML Page ...............................................................344Adding a Hyperlink to a Report..................................................................346Distributing Reports via crystalreports.com ...........................................349Integrating with salesforce.com.................................................................350Publishing to crystalreports.com with CrystalReports Desktop Publisher .....................................................................351Interactive Report Viewing with Crystal Reports Viewer.......................354Opening a report in Crystal Reports Viewer ..................................355Navigating a report.............................................................................355Printing a report .................................................................................359E-mailing reports to your friends and co-workers .........................360Sharing reports in a variety of formats............................................360Searching a haystack for that elusive needle .................................361Accessing reports on crystalreports.com.......................................361Chapter 23: SQL Expression Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . .363Creating an SQL Statement .........................................................................363Modifying an SQL Statement.......................................................................366Part VI: The Part of Tens ............................................369Chapter 24: Ten Things to Do Before You Create a Report . . . . . . . . .371Chapter 25: Ten Ways to Give Your Reports More Pizzazz . . . . . . . . .375Index........................................................................379

 2021-05-08 02:01:24 |  133 | Naser

Zigurd Mednieks Laird Dornin G. Blake Meike Masumi Nakamura photo
 2021-05-08 02:01:07 |  123 | Naser

wesley hales photo
 2021-05-08 02:00:56 |  144 | Naser

Paul Nielsen photo

Microsoft® SQL Server® 2008 Bible
Author: Paul Nielsen
Pages: 1683
Foreword ..................................................................................................................................................xxxiii
Introduction .............................................................................................................................................. xxxv
Part I Laying the Foundation
Chapter 1: The World of SQL Server ................................................................................................................................3
Chapter 2: Data Architecture ............................................................................................................................................27
Chapter 3: Relational Database Design ..............................................................................................................................43
Chapter 4: Installing SQL Server 2008 .............................................................................................................................73
Chapter 5: Client Connectivity .........................................................................................................................................93
Chapter 6: Using Management Studio ............................................................................................................................101
Chapter 7: Scripting with PowerShell .............................................................................................................................129
Part II Manipulating Data with Select
Chapter 8: Introducing Basic Query Flow ......................................................................................................................167
Chapter 9: Data Types Expressions and Scalar Functions ...........................................................................................197
Chapter 10: Merging Data with Joins and Unions .........................................................................................................227
Chapter 11: Including Data with Subqueries and CTEs ................................................................................................259
Chapter 12: Aggregating Data .........................................................................................................................................289
Chapter 13: Windowing and Ranking ............................................................................................................................319
Chapter 14: Projecting Data Through Views ..................................................................................................................329
Chapter 15: Modifying Data ...........................................................................................................................................347
Chapter 16: Modification Obstacles ...............................................................................................................................377
Part III Beyond Relational
Chapter 17: Traversing Hierarchies ................................................................................................................................399
Chapter 18: Manipulating XML Data ..............................................................................................................................435
Chapter 19: Using Integrated Full-Text Search ..............................................................................................................491
Part IV Developing with SQL Server
Chapter 20: Creating the Physical Database Schema .....................................................................................................513
Chapter 21: Programming with T-SQL ...........................................................................................................................559
Chapter 22: Kill the Cursor! ...........................................................................................................................................579
Chapter 23: T-SQL Error Handling ...............................................................................................................................593
Chapter 24: Developing Stored Procedures ....................................................................................................................607
Chapter 25: Building User-Defined Functions ................................................................................................................623
Chapter 26: Creating DML Triggers ...............................................................................................................................635
Chapter 27: DDL Triggers ..............................................................................................................................................657
Chapter 28: Building Out the Data Abstraction Layer ...................................................................................................665
Chapter 29: Dynamic SQL and Code Generation ..........................................................................................................673
Part V Data Connectivity
Chapter 30: Bulk Operations ..........................................................................................................................................685
Chapter 31: Executing Distributed Queries ....................................................................................................................691
Chapter 32: Programming with ADO.NET 3.5 ..............................................................................................................715
Chapter 33: Sync Framework .........................................................................................................................................751
Chapter 34: LINQ ...........................................................................................................................................................775
Chapter 35: Asynchronous Messaging with Service Broker ...........................................................................................807
Chapter 36: Replicating Data ..........................................................................................................................................813
Chapter 37: Performing ETL with Integration Services .................................................................................................829
Chapter 38: Access as a Front End to SQL Server ........................................................................................................867
Part VI Enterprise Data Management
Chapter 39: Configuring SQL Server ..............................................................................................................................883
Chapter 40: Policy-Based Management ...........................................................................................................................939
Chapter 41: Recovery Planning ......................................................................................................................................953
Chapter 42: Maintaining the Database ............................................................................................................................985
Chapter 43: Automating Database Maintenance with SQL Server Agent ...................................................................1011
Chapter 44: Transferring Databases ..............................................................................................................................1039
Chapter 45: Database Snapshots ..................................................................................................................................1059
Chapter 46: Log Shipping .............................................................................................................................................1069
Chapter 47: Database Mirroring ...................................................................................................................................1091
Chapter 48: Clustering ..................................................................................................................................................1119
Part VII Security
Chapter 49: Authenticating Principals ...........................................................................................................................1169
Chapter 50: Authorizing Securables ..............................................................................................................................1187
Chapter 51: Data Cryptography ...................................................................................................................................1197
Chapter 52: Row-Level Security ...................................................................................................................................1205
Part VIII Monitoring and Auditing
Chapter 53: Data Audit Triggers ..................................................................................................................................1223
Chapter 54: Schema Audit Triggers ..............................................................................................................................1233
Chapter 55: Performance Monitor ................................................................................................................................1237
Chapter 56: Tracing and Profiling ................................................................................................................................1243
Chapter 57: Wait States ................................................................................................................................................1255
Chapter 58: Extended Events .......................................................................................................................................1261
Chapter 59: Change Tracking .......................................................................................................................................1267
Chapter 60: Change Data Capture ...............................................................................................................................1285
Chapter 61: SQL Audit .................................................................................................................................................1297
Chapter 62: Management Data Warehouse ..................................................................................................................1305
Part IX Performance Tuning and Optimization
Chapter 63: Interpreting Query Execution Plans .........................................................................................................1313
Chapter 64: Indexing Strategies ....................................................................................................................................1321
Chapter 65: Query Plan Reuse .....................................................................................................................................1357
Chapter 66: Managing Transactions Locking and Blocking ......................................................................................1363
Chapter 67: Data Compression ....................................................................................................................................1415
Chapter 68: Partitioning ................................................................................................................................................1427
Chapter 69: Resource Governor ...................................................................................................................................1453
Part X Business Intelligence
Chapter 70: BI Design ...................................................................................................................................................1461
Chapter 71: Building Multidimensional Cubes with Analysis Services .......................................................................1469
Chapter 72: Programming MDX Queries ......................................................................................................................1509
Chapter 73: Authoring Reports with Reporting Services .............................................................................................1527
Chapter 74: Administering Reporting Services .............................................................................................................1559
Chapter 75: Analyzing Data with Excel ........................................................................................................................1577
Chapter 76: Data Mining with Analysis Services .........................................................................................................1593
Appendix A: SQL Server 2008 Specifications ..........................................................................................1613
Appendix B: Using the Sample Databases ................................................................................................1619
Index .........................................................................................................................................................1625

 2021-05-08 02:00:53 |  124 | Naser

DANIELE BOCHICCHIO photo

ASP.NET 4.0 in Practice
Author: DANIELE BOCHICCHIO
Pages: 501
brief contents
PART 1 ASP.NET FUNDAMENTALS ................................................11 ■ Getting acquainted with ASP.NET 4.0 32 ■ Data access reloaded: Entity Framework 303 ■ Integrating Entity Framework and ASP.NET 52PART 2 ASP.NET WEB FORMS...................................................754 ■ Building the user interface with ASP.NET Web Forms 775 ■ Data binding in ASP.NET Web Forms 1046 ■ Custom controls 1357 ■ Taking control of markup 162PART 3 ASP.NET MVC .........................................................1858 ■ Introducing ASP.NET MVC 1879 ■ Customizing and extending ASP.NET MVC 219PART 4 SECURITY ....................................................................25710 ■ ASP.NET security 25911 ■ ASP.NET authentication and authorization 282
PART 5 ADVANCED TOPICS.........................................................31712 ■ Ajax and RIAs with ASP.NET 4.0 31913 ■ State 34814 ■ Caching in ASP.NET 36615 ■ Extreme ASP.NET 4.0 39616 ■ Performance and optimizations 416

 2021-05-08 17:04:37 |  148 | Naser

J O H N R O S S photo

N E T W O R K K N O W- H O W
Author: J O H N R O S S
Pages: 292
Acknowledgments ....................................................................................................... xiiiIntroduction ...................................................................................................................xvChapter 1: How a Network Will Improve Your Life .............................................................1Chapter 2: Types of Network Connections .........................................................................9Chapter 3: Hubs Switches and Routers ..........................................................................27Chapter 4: How Computer Networks Are Organized ........................................................35Chapter 5: Designing Your Network................................................................................47Chapter 6: Installing the Network Control Center and Ethernet Cables.................................55Chapter 7: Ethernet Network Interfaces............................................................................69Chapter 8: Wi-Fi Networks ............................................................................................77Chapter 9: File Servers ..................................................................................................93Chapter 10: Connecting Your Network to the Internet......................................................107Chapter 11: Connecting Your Computer to a Network ....................................................117Chapter 12: Sharing Files Through Your Network ...........................................................131Chapter 13: Network Security ......................................................................................151Chapter 14: Printers and Other Devices on Your Network................................................191
Chapter 15: Other Things You Can Connect to Your Network: Audio Video Home Entertainment and Beyond .................................................................................203Chapter 16: Other Network Applications.......................................................................225Chapter 17: Troubleshooting ........................................................................................239Index .........................................................................................................................253

 2021-05-08 02:00:30 |  112 | Naser

Julia Lerman photo

آموزش Programming Entity Framework : Entity Framework
Author: Julia Lerman
Pages: 860
دوره آموزش Entity Framework

سرفصل آموزشی این کتاب به شرح زیر است:
Table of ContentsForeword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiPreface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii1. Introducing the ADO.NET Entity Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Programming Against a Model Not Against the Database 2The Entity Data Model: A Client-Side Data Model 3The Entity in “Entity Framework” 5Choosing Your Backend 8Available Providers 8Access and ODBC 9Entity Framework Features 9The Entity Data Model 9Entity Data Model Design Tools 9Managing Objects with Object Services 10Change Tracking 11Relationship Management 11Data Binding 12EntityClient 12The Entity Framework in Web Services 12What About ADO.NET DataSets and LINQ to SQL? 13DataSets 13LINQ to SQL 14Entity Framework Pain Points 14The Entity Framework Designer 14Challenges with Change Tracking Distributed Applications 16Domain-Driven Development 16Unit Testing 16Programming the Entity Framework 172. Exploring the Entity Data Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Why Use an Entity Data Model? 19
The EDM Within the Entity Framework 20Your First EDM 21The EDM in the Designer Window 23Entity Properties 25Editing the Entity Set and Navigation Property Names 26The Naked Model: Inspecting the Model’s XML 27A Less Daunting Model View 27The Three Parts of the Model 28CSDL: The Conceptual Schema 30Schema 31EntityContainer 31EntitySet 32EntityType 33Associations 35AssociationSet 37NavigationProperty 38Navigation Properties That Return Collections 39Where Are the Foreign Keys? 41SSDL: The Store Schema 41Association and AssociationSet 43MSL: The Mappings 45The MSL Elements 46Database Views in the EDM 49Code Generation from EDM to Classes 50Summary 503. Querying Entity Data Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51Query the Model Not the Database 51Your First EDM Query 52A More Query-Like Query 53Where Did the Context and Classes Come from? 54LINQ to Entities Queries 56ObjectQuery and LINQ to Entities 57Entity SQL Queries That Return Objects 59Why Another Way to Query? 59Entity SQL 60The Parameterized ObjectQuery 62Method-Based Syntax Queries for LINQ and Entity SQL 63LINQ Method-Based Queries 63ObjectQuery’s Query Builder Methods 66The Shortest Query 67EntityClient: The Lowest-Level Method for Returning Streamed DataThrough EDM Queries 68
EntityConnection and the Connection String 70EntityCommand 71ExecuteReader 71Forward-Only Access to the Fields 71Translation to Database Queries 72Pay Attention to the .NET Method’s Impact on Generated SQL 73Avoid Inadvertent Query Execution 74Summary 754. Exploring EDM Queries in Greater Depth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77Same Model Friendlier Name 78Projections in Queries 79Projections in LINQ to Entities 80LINQ Projections and New Language Features 80Projections with LINQ Query Methods 84Projections in Entity SQL 84DbDataRecords and Nonscalar Properties 86Projecting with Query Builder Methods 87Querying Across Associations 87Navigation to an EntityReference 88Filtering and Sorting with an EntityReference 90Navigating to Entity Collections 91Projecting Properties from EntityCollection Entities 92Filtering and Sorting with EntityCollections 93Aggregates with EntityCollections 94Entity SQL SET Operators 96Aggregates in LINQ Methods and Query Builder Methods 96Joins and Nested Queries 97Joins 97Nested Queries 99Grouping 101Naming Properties When Grouping 103Chaining Aggregates 103Filtering on Group Conditions 104Grouping in Entity SQL 105Shaped Data Returned by Queries 107Shaped Data from Entity SQL 109Deferred Loading and Eager Loading Queries 111Deferred Loading Entity Collections with Load 111Using the Include Method to Eager-Load 113Using Include with an ObjectQuery 115Pros and Cons of Load and Include 116Retrieving a Single Entity 117
Retrieving a Single Entity with GetObjectByKey 118Entity SQL’s Wrapped and Unwrapped Results 118Entity SQL Rules for Wrapped and Unwrapped Results 121Digging a Little Deeper into EntityClient’s Results 121Summary 1225. Modifying Entities and Saving Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123How ObjectContext Manages Entities 123Remembering Original Values and Keeping Track of Changes 124The SaveChanges Method 124From Entity Framework Command to Native Command 127Adding New Entities 127Breaking Down the Native Insert Command 128Inserting New Parents and Children 129Deleting Entities 131Summary 1326. Using Stored Procedures with the EDM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133Adding the Stored Procedures into the Model 133Working with Functions 135Function Attributes 136Implementing Functions 138Rules for Mapping Functions to Entities 139Wiring Up Insert Update and Delete Functions to an Entity 139Inspecting the Mappings in the XML 141Using These Mapped Functions 143The EDM Designer’s Model Browser 144Mapping the Last of the Four Functions: CustomersbyState 145Using the CustomersbyState Function 146Using Functions in a Query 147More About the Update Model Wizard 148A Frequently Asked Question About Deleting Entities from the Model 148Summary 1497. Tuning Up a Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151The BreakAway Geek Adventures Business Model 151Creating a Class Library Project to Host an EDM 152Inspecting and Cleaning Up a New Model 153Modifying the Names of Entities 154Collisions Between Property Names and Entity Names 155Cleaning Up Navigation Property Names 156Entities with Multiple Relationships to a Single Entity 157
Determining Which Navigation Property Is Mapped to Which ForeignKey Field 158Mapping a Few Stored Procedures 159Mapping the Insert Function 159Mapping the Update Function 160Working with Many-to-Many Relationships 163Building the BreakAwayModel Project 165Don’t Overlook the Assembly and Model Names 165The Impact of Compiling a Project on an EDMX File 166Summary 1688. Data Binding with Windows Forms and WPF Applications . . . . . . . . . . . . . . . . . . . 169Data Binding with Windows Forms Applications 169Creating a Windows Forms Application 170Using Windows Forms Data Sources to Help with Data Binding 171Creating an Object Data Source for a Customer Entity 172Getting the Entity’s Details onto the Form 175Adding Code to Perform the EDM Query 175Testing the Sample 178Entities BindingSources and a Very Important Rule 178Adding the Related EntityCollection to the Form 179Allowing the User to Edit the Data 183Editing the Navigation Properties (and Trimming Down the Query) 184Adding New Customers 188Data Binding with WPF Applications 193Creating the WPF Form 194Creating the New Project 194Adding Code to Query the Entities That Drive the Form 195XAML’s Role in Data Binding 197Binding with the ListBox 197Testing the Example 199Selecting an Entity and Seeing Its Details 199Adding Another EntityCollection to the Mix: Activities 201Editing Trip Entities and Their Related Data 204Adding Items to the Child EntityCollection 207The Last Task: Adding New Trips to the Catalog 209Summary 2139. Working with Object Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215Where Does Object Services Fit into the Framework? 215Query Processing 216From Query to Command Tree to SQL 217A Better Understanding of Query Builder Methods 218
Breaking Apart the ObjectQuery 222Query Execution with the ToList or ToArray Method 224Query Execution with the Execute Method 225ObjectContext.Connection 225Handling Command Execution with EntityClient 227Object Materialization 227The ObjectContext 227ObjectContext Is a Cache for In-Memory Objects 228Entity Objects 229EntityKey and EntityState 231Merging Results into the Cache 232State Management and ObjectStateEntry 233Change Tracking 234Relationship Management 236Attaching and Detaching Objects from the ObjectContext 237ObjectContext.ApplyPropertyChanges: A Handy Method for UpdatingEntities 240Sending Changes Back to the Database 241ObjectContext.SaveChanges 241SaveChanges Returns an Integer 241Data Validation with the SavingChanges Event 242Concurrency Management 242Transaction Support 243Additional Features 244Object Services Supports XML and Binary Serialization 244Object Services Supports Data Binding 246Object Services Supports Custom Classes 247Summary 24810. Customizing Entities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249Partial Classes 249Customizable Methods 251The OnContextCreated Method 251The On[Property]Changed and On[Property]Changing Methods 253Using PropertyChanged to Calculate Database-Computed ColumnsLocally 255Customizable Event Handlers 257The ObjectContext.SavingChanges Event 257The EntityObject.PropertyChanging and EntityObject.Property-Changed Events 260The AssociationChanged Event 262Other Opportunities for Customization 265Custom Properties 265
Custom Properties That Perform Calculations on Child Collections 267Overloading Context and Entity Methods 268Partial Classes Are for More Than Just Overriding Existing Methodsand Events 269Custom Code Generation 269Creating Common Methods or Properties for All Entities 269Summary 27011. Using the ASP.NET EntityDataSource Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271Getting to First Base with the EntityDataSource Control and Flat Data 272Creating the Hello Entities Project 272Creating a GridView and an EntityDataSource Concurrently 273Configuring an EntityDataSource Through Its Wizard 274Formatting the GridView 276Testing the Web Application 277Understanding How the EntityDataSource Is Able to Retrieve and UpdateYour Data 278EntityDataSource and Its Query 278EntityDataSource and Its ObjectContext 279EntityDataSource Context Events 280EntityDataSource and ViewState 281Working with Related EntityReference Data 282Using EntityDataSource.Include to Get Related Data 283Displaying Data That Comes from EntityReference NavigationProperties 284Using a New EntityDataSource Control to Enable Editing ofEntityReference Navigation Properties 285Editing EntityReferences That Cannot Be Satisfied with a Drop-DownList 287Binding an EntityDataSource to Another Control withWhereParameters 287Editing Related Data Concurrently with Multiple EntityDataSourceControls 289Working with Hierarchical Data in a Master/Detail Form 290Setting Up the Web Application 290Specifying Your Own Entity SQL Query Expression for an EntityData-Source 291Binding a DropDownList to an EntityDataSource Control 292Creating a Parent EntityDataSource That Is Controlled by the Drop-DownList and Provides Data to a DetailsView 293Using the EntityDataSource.Where Property to Filter Query Results 294Displaying Read-Only Child Data Through the Parent EntityDataSource 294
Using a New EntityDataSource to Add a Third Level of HierarchicalData to the Master/Detail Form 296Using the EntityDataSource.Inserting Event to Help with Newly AddedEntities 298Testing the Application 299Browsing Through the EntityDataSource Events 300EntityDataSource Events and Page Events 300Summary 30212. Customizing Entity Data Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303Designer Support for Mappings 303Mapping Table per Type Inheritance for Tables That Describe DerivedTypes 304Mapping TPT Inheritance 305Fixing the Impact of the New Inheritance on the Customer’s Associationswith Other Entities 306Handling Properties with the Same Name 309Querying Inherited Types 310Creating a Project to Test the New Mappings 310Testing the TPT Inheritance 311SaveChanges and Newly Added Derived Types 312Specifying or Excluding Derived Types in Queries 313Creating New Derived Entities When the Base Entity Already Exists 314TPT with Abstract Types 315Using Entity Splitting to Map a Single Entity to More Than One Table 318Merging Multiple Entities into One 319Testing Entity Splitting 319Using Conditional Mapping to Filter Entity Mappings 322Creating a Conditional Mapping for the Activity Entity 323Testing the Conditional Mapping 325Implementing Table per Hierarchy Inheritance for Tables That ContainMultiple Types 328Creating the Resort Derived Type 328Setting a Default Value on the Table Schema 330Testing the TPH Mapping 331Abstract Entity Types 332Which of These Mappings Is Better? 333Implementing Customizations That Are Not Supported by the EDMDesigner 334Mapping Table per Concrete (TPC) Type Inheritance for Tables withOverlapping Fields 334Creating Complex Types to Encapsulate Sets of Properties 336Complex Types and the EDM Designer 337
Defining a Complex Type 337Replacing Properties with a Complex Type 338Mapping Entities with Complex Types 339Complex Types Are Not EntityObjects 339Using Complex Types 340Complex Types in Data-Binding Scenarios 341Data Binding Complex Types in ASP.NET Without the EntityData-Source 343Windows Forms DataSource and Complex Types 345Removing the Complex Types from the Model 347Using QueryView to Create Read-Only Entities and Other SpecializedMappings 348Creating a Simple QueryView 349Testing the QueryView 351Deconstructing the QueryView 351QueryView with Inherited Types 352Testing the New QueryView 354Additional Customization Options 355Mapping Stored Procedures 355Multiple Entity Sets per Type 356Self-Referencing Associations 356Summary 35613. Working with Stored Procedures When Function Mapping Won’t Do . . . . . . . . . . 359Does the Procedure Line Up with an Entity? 359Overview of Procedures UDFs and TVFs in the EDM 360Composing Queries Against Functions 360Mapping and Executing Query Stored Procedures 361Using Functions That Match an Entity Whose Property Names HaveBeen Changed 361Query Stored Procedures and Inherited Types 362Queries That Return Randomly Shaped Results 363Replacing Stored Procedures with Views 364Queries That Return Multiple Resultsets 366Queries That Return Primitive Types 366Adding Native Queries to the Model 367Adding Native Views to the Model 368DefiningQuery Is Already in Your Model 369Using DefiningQuery to Create Your Own Views 372Implementing a DefiningQuery 373Using DefiningQuery to Solve More Complex Problems 378Using Commands That Affect the Persisted Database 378DML Functions That Return Entities 379
Insert Update and Delete Functions That Don’t Return an Entity 381Defining Insert Update and Delete Stored Procedures Directly in theModel 382What Do the Functions Look Like? 382Mapping Insert/Update/Delete to Types Within an Inheritance Structure 383What If Stored Procedures Affect Multiple Entities in an InheritanceStructure? 384Implementing and Querying with User-Defined Functions (UDFs) 385Summary 38614. Using Entities with Web and WCF Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389Building a Client That Is Ignorant of the Entity Framework 389Pros and Cons of an Entity Framework-Agnostic Consumer 390Using the Entity Framework with ASMX Web Services 391Building the ASMX Service 391Building the Client Application 405Using the Entity Framework with WCF Services 413Building the WCF Service 414Building the Client to Consume the WCF Service 432Summary 44515. Working with Relationships and Associations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447Deconstructing Relationships in the Entity Data Model 448How Did the Entity Data Model Wizard Create the Association? 450Additional Items Created in the Model 452Navigation Properties Are Not Required 452Understanding How Associations Impact the Native Query 453Deconstructing Relationships Between Instantiated EntityObjects 454Relationships Are First-Class Citizens 454The “Platinum Rule” About Related Entities That Are Attached orDetached from the ObjectContext 455The Relationship Manager and the IRelatedEnd Interface 456Experimenting with Relationship Span 457Understanding Navigation Properties in Entity Objects 459Referential Integrity and Constraints 462Deletes and Cascading Deletes 463Defining Relationships Between Entities 465The CLR Way: Setting a Navigation Property 466Setting an EntityReference Using an EntityKey 466Loading Adding and Attaching Navigation Properties 467EntityReference.Load and EntityCollection.Load 467EntityCollection.Add 472Attach and Remove 474
Attach Versus Add 475Moving an Entity to a New Graph 475Learning a Few Last Tricks to Make You a Relationship Pro 476Using CreateSourceQuery to Enhance Deferred Loading 476Getting a Foreign Key Value 478Summary 47916. Making It Real: Connections Transactions Performance and More . . . . . . . . . . . 481EntityConnection and Database Connections in the Entity Framework 481EntityConnection Versus Database Connection 482Programming EntityConnection Strings 483Using the EntityConnectionStringBuilder Class 484Opening and Closing Entity and Database Connections 486Taking Control of How Store Connections Are Disposed 488What About Connection Pooling? 490The Entity Framework and Transactions 490Why Use Your Own Transaction? 490Understanding the Entity Framework’s Default: Implicit Transactions 491Specifying Your Own Transaction 493Reading Queries Using System.Transaction or EntityTransaction 496Can You Use Transactions Within ObjectContext? 497The Entity Framework and Security 497SQL Injection 498Protecting Data from Connection Piggybacks 500The Entity Framework and Performance 501A Few “Backyard Benchmarks” 501Reducing the Cost of Query Compilation 507The EDM Generator for Precompiled Views (and More) 508Precompiled LINQ to Entities Queries 510Query Plan Caching for Entity SQL 513What About Database Updates and Performance? 515Entities in Multithreaded Applications 516Forcing an ObjectContext to Use Its Own Thread 517Another Spin on Threading: Concurrent Processing 520Summary 52317. Controlling Objects with ObjectStateManager and MetadataWorkspace . . . . . . . 525Managing ObjectStateEntry Objects with ObjectStateManager 526An ObjectStateEntry Refresher 526Getting an ObjectStateManager and Its Entries 527Getting Groups of Entries with GetObjectStateEntries 527Getting a Single Entry with GetObjectStateEntry and TryGetObject-StateEntry 531
Digging Through ObjectStateEntry 532CurrentValues and OriginalValues 532CurrentValueRecord.DataRecordInfo 534Building the ObjectStateEntry Visualizer 535Setting Up the Project and Code File 536Retrieving an ObjectStateEntry Using an EntityKey 537Reading the OriginalValues and CurrentValues of an ObjectStateEntry 538Determining Whether a Property Has Been Modified 539Displaying the ObjectStateEntry’s State and Entity Type 540Getting ComplexType Properties Out of ObjectStateEntry 541Modifying Values with ObjectStateManager 543Working with Relationships in ObjectStateManager 544ObjectStateManager and SavingChanges 549The FieldMetadata Hierarchy 551The MetadataWorkspace API 552Loading the MetadataWorkspace 552Clearing the MetadataWorkspace from Memory 554The MetadataWorkspace ItemCollections 554ItemCollections Are Loaded as Needed with EntityCollection 555Reading Metadata from the MetadataWorkspace 556Querying the Items 559Building Entity SQL Queries Dynamically Using Metadata 559Reading the Results of a Dynamically Created Query 563Dynamic Entity SQL and Generics for Reference Lists 567Creating EntityObjects Without Entity Classes 569Creating a New Entity with CreateInstance 570Using System.Type to Inspect the EntityType 571Creating Entities and Graphs Dynamically 571Calling the AddChildtoParentObject Method 574Summary 57518. Handling Entity Framework Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577Preparing for Exceptions in Entity Framework Code 578EntityConnectionString Exceptions 580Connection String Can’t Be Found or Is Improperly Configured:System.ArgumentException 580Metadata Files Cannot Be Found: System.Data.MetadataException 580Handling Connection String Exceptions 581Query Compilation Exceptions 582Invalid LINQ to Entities Query Expressions: System.NotSupportedException582Invalid Entity SQL Query Expressions: EntitySQLException 582Store Provider Issues: EntityCommandCompilationException 584
Creating a Common Wrapper to Handle Query Execution Exceptions 585SaveChanges Command Execution Exceptions 587Model and Mapping Constraints Are Broken: UpdateException 587Exceptions Thrown by Broken Constraints in the Database 588Automatically Rolling Back SaveChanges When an UpdateExceptionOccurs 589ObjectStateEntries Returned by Object Services Exceptions 589General Entity Exceptions That May Occur When Executing Queriesor Commands 590InvalidOperationExceptions 590Exceptions When Multiple Parties Edit Data Concurrently 591Handling Concurrency Conflicts 591Understanding Optimistic Concurrency Options in the EntityFramework 592Ignoring Concurrency Conflicts 592Forcing the User’s Data to the Server (ClientWins) 593Refreshing the User’s Data with Server Data (StoreWins) 593Determining the Scope of Changes 593Using rowversion for Concurrency Checks 594Implementing Optimistic Concurrency with the Entity Framework 595Flagging a Property for Concurrency Checking 595How the Entity Framework Uses the ConcurrencyMode Property 595Concurrency Checking Without a rowversion Field 597Concurrency Checking on a Checksum in the Data Store 597Concurrency Checks for EntityReference Navigation Properties 598Concurrency Checks and Inherited Types 598Concurrency Checks and Stored Procedures 600Handling OptimisticConcurrencyExceptions 602Using ObjectContext.Refresh 602Using ClientWins Refresh 603Using StoreWins Refresh 605Refreshing Collections of Entities 606Refreshing Related Entities in a Graph 608Rewinding and Starting Again and Maybe Again After That 609What If a Relationship But No Scalar Properties Changes? 611Reporting an Exception 612Handling Concurrency Exceptions at a Lower Level 613Handling Granular Exceptions Without User Intervention 613Handling Multiple Conflicts 616Handling Exceptions When Transactions Are Your Own 617Summary 619
19. Using Your Own Custom Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621Mapping Classes to the Entity Data Model 621Mapping Rules for Custom Classes and Their Properties 622Inheriting from EntityObject 622Metadata Attributes 623Entity Classes 624Scalar Properties 625Navigation Properties 627Mapping the Remaining Entities in the Model 631Mapping the EntityContainer 631Resolving Conflicts Between Custom Classes and Designer-GeneratedClasses 631Querying Using the Custom Classes 631Implementing the IPOCO Interfaces 632The IEntityWithKey Interface 632The IEntityWithChangeTracker Interface 633The IEntityWithRelationships Interface 636Working with the IPOCO-Enabled Objects 637Custom Class Assemblies and Entity Data Model Files 638Accessing the Model Files When They Are Not in a ReferencedAssembly 639Summary 63920. Using the Entity Framework in n-Tier Client-Side Applications . . . . . . . . . . . . . . . . 641Thinking in Layers 641Organizing Your Layers 643Finding Your Motivation: A Master/Detail Data Entry Form That Will Usethe DataBridge Class 644Preventing Non-UI Logic from Leaking into the UI 644Implementing Logic That Fits Best in the Entity Partial Classes 646Creating an IsDirty Property for the ObjectContext 647Building the CommandExecutor Class 648Building the DataBridge Class 652Using a Long-Running ObjectContext 652Implementing the Primary Elements of the DataBridge Class 653Creating a Class for Lightweight Objects to Be Used in UI Pick Lists 654Creating the Main Entity Pick List: For Customer Names 655Using MergeOptions to Cache or Refresh a Pick List 656Building a Frequently Used Entity Graph for the UI 656Supplying Additional Lists for UI Drop-Downs 660Saving Changes 662Rolling Back User Changes 663Using the DataBridge Class for Data Binding in a Master/Detail Form 666
Using BindingSourceControls with the DataBridge 666Instantiating the DataBridge Class in the Form 666Populating the Form with an Entity and Its Related Data 667Consuming the Pick Lists in the Form 669Deleting from Grids When EntityCollections and Referential ConstraintsAre Involved 670Allowing Users to Roll Back Their Edits 675Helping the User Who Forgets to Save Changes 676Summary 67721. Using the Entity Framework in n-Tier ASP.NET Applications . . . . . . . . . . . . . . . . . . 679Understanding How an ObjectContext Fits into the Web Page Life Cycle 680Using EntityObjects in Read-Only Web Pages 681Exploring Options for Updating Entities in an ASP.NET Application 684Evaluating ASP.NET’s State Solutions Against the Entity Framework 685Introducing ASP.NET’s ObjectDataSource Control 689Why ObjectDataSource? 689ObjectDataSource Enforces Its Rules on Your Objects 689How the ObjectDataSource Gets Data into and out of the Data-BindingControls 690Designing Object Provider Classes to Be Used with an ObjectDataSource 691Creating the CustomerProvider Class 692Creating the AddressProvider Class 697Creating the ReservationsProvider Class 701Providing Reusable Cached Reference Lists 702Wiring Up the Provider Classes to ObjectDataSource Controls 704Using the ObjectDataSource Wizard to Perform the Initial Wiring tothe Provider Classes 705Tweaking ObjectDataSource Properties to Work with Entities 705Using ObjectDataSource Events to Solve Problems That Are Particularto Entities 706Understanding Why We Didn’t Use Object Graphs in This Business Layer 713Database Hits Versus Very Busy Memory 713Summary 71422. Implementing a Smarter WCF Service for Working with Entities . . . . . . . . . . . . . . 717Will Your Client Agree to Your Data Contract? 718Shipping DTOs Not EntityObjects 719Building a Data Transfer Object to Take the Place of an Entity Object 719Creating EntityState Properties That Do Not Rely on ObjectContext 722The EntityStateLocal Enums and Interface 723Implementing the IEntityStateLocal Interface in the DTO Classes 724Implementing the IEntityStateLocal Interface in the Entity Classes 724
Designing the Service Interface 725Implementing the Service Operations 726Returning CustomerList as ShortCustomers with GetCustomerList 727Returning Additional Reference Lists 727Returning a Single Entity Graph for Editing with GetCustomer 728Building Methods to Create DTOs from Entity Objects 730Initializing the DTO Children 732Saving Edits Sent Back from the Client with SaveCustomer 733Building the Main Method for Updating the Graph: SaveCustomer 735UpdateChildren 740Implementing the Client That Will Use the WCF Service 742Rules for the Client to Follow 742Building a Business Layer Between the UI and the Services 743What’s in These Business Classes? 743Calling the Service Operations from the Business Layer 747Testing It All with a Simple Console Application 749Summary 75123. The Entity Framework Today and Tomorrow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 753What About Building Reports with the Entity Framework? 753Major Differences Between the Entity Framework and LINQ to SQL 754Extensions Samples and Solutions from Microsoft 755Extensions and APIs 755Samples 756Learning Tools 757Entity Framework v.Next 757The Transparent Design Process for the Next Version 758Blogs Forums and Other Resources 758Appendix: Entity Framework Assemblies and Namespaces . . . . . . . . . . . . . . . . . . . . . . . . . 759Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 763

 2021-05-12 20:17:33 |  128 | Naser