Programming Entity Framework: Code First

Creating and Configuring Data Models from Your Classes
Author: Julia Lerman,Rowan Miller
Publisher: "O'Reilly Media, Inc."
ISBN: 1449323847
Category: Computers
Page: 194
View: 7277
DOWNLOAD NOW »
Take advantage of the Code First data modeling approach in ADO.NET Entity Framework, and learn how to build and configure a model based on existing classes in your business domain. With this concise book, you’ll work hands-on with examples to learn how Code First can create an in-memory model and database by default, and how you can exert more control over the model through further configuration. Code First provides an alternative to the database first and model first approaches to the Entity Data Model. Learn the benefits of defining your model with code, whether you’re working with an existing database or building one from scratch. If you work with Visual Studio and understand database management basics, this book is for you. Learn exactly what Code First does—and does not—enable you to do Understand how property attributes, relationships, and database mappings are inferred from your classes by Code First Use Data Annotations and the Fluent API to configure the Code First data model Perform advanced techniques, such as controlling the database schema and overriding the default model caching This book is a continuation of author Julia Lerman’s Programming Entity Framework, widely recognized as the leading book on the topic.

Programming Entity Framework: DbContext

Querying, Changing, and Validating Your Data with Entity Framework
Author: Julia Lerman,Rowan Miller
Publisher: "O'Reilly Media, Inc."
ISBN: 144933184X
Category: Computers
Page: 258
View: 1239
DOWNLOAD NOW »
The DbContext API captures Entity Framework’s (EF) most commonly used features and tasks, simplifying development with EF. This concise book shows you how to use the API to perform set operations with the DbSet class, handle change tracking and resolve concurrency conflicts with the Change Tracker API, and validate changes to your data with the Validation API. With DbContext, you’ll be able to query and update data, whether you’re working with individual objects or graphs of objects and their related data. You’ll find numerous C# code samples to help you get started. All you need is experience with Visual Studio and database management basics. Use EF’s query capabilities to retrieve data, and use LINQ to sort and filter data Learn how to add new data, and change and delete existing data Use the Change Tracker API to access information EF keeps about the state of entity instances Control change tracking information of entities in disconnected scenarios, including NTier applications Validate data changes before they’re sent to the database, and set up validation rules Bypass EF’s query pipeline and interact directly with the database

Entity Framework 4.0 Recipes

A Problem-Solution Approach
Author: Larry Tenny,Zeeshan Hirani
Publisher: Apress
ISBN: 1430227036
Category: Computers
Page: 648
View: 4296
DOWNLOAD NOW »
Entity Framework 4.0 Recipes provides an exhaustive collection of ready-to-use code solutions for Entity Framework, Microsoft’s vision for the future of data access. Entity Framework is a model-centric data access platform with an ocean of new concepts and patterns for developers to learn. With this book, you will learn the core concepts of Entity Framework through a broad range of clear and concise solutions to everyday data access tasks. Armed with this experience, you will be ready to dive deep into Entity Framework, experiment with new approaches, and develop ways to solve even the most difficult data access challenges. If you are a developer who likes to learn by example, then this is the right book for you. Gives ready-to-use, real-world recipes to help you with everyday tasks Provides guideposts for learning core concepts Maps out key landmarks for experimenting with your own solutions What you’ll learn Solve the most common data access problems using Entity Framework. Implement basic data access design patterns using Entity Framework. Seamlessly model your solutions across both code and data. Improve data access performance. Use data binding to simplify and reduce your code. Leverage the recipes to empower your own exploration of Entity Framework. Who this book is for This book is for anyone learning Microsoft’s Entity Framework—Microsoft’s primary data access platform. If you have ever struggled to learn a new technology, programming model, or way of doing something, you know how helpful simple, real-world examples can be. For the beginning developer, this book provides concrete examples for common data access tasks. For developers with experience with previous Microsoft access platforms, this book provides a task-by-task mapping between previous approaches and the patterns used in Entity Framework. Table of Contents Getting Started With Entity Framework Entity Data Modeling Fundamentals Querying an Entity Data Model Using Entity Framework in ASP.NET Loading Entities and Navigation Properties Beyond the Basics with Modeling and Inheritance Working with Object Services Plain Old CLR Objects Using the Entity Framework in N-Tier Applications Stored Procedures Functions Customizing Entity Framework Objects Improving Performance Concurrency Advanced Modeling

Programming Entity Framework

Building Data Centric Apps with the ADO.NET Entity Framework
Author: Julia Lerman
Publisher: "O'Reilly Media, Inc."
ISBN: 9781449399658
Category: Computers
Page: 920
View: 1509
DOWNLOAD NOW »
Get a thorough introduction to ADO.NET Entity Framework 4 -- Microsoft's core framework for modeling and interacting with data in .NET applications. The second edition of this acclaimed guide provides a hands-on tour of the framework latest version in Visual Studio 2010 and .NET Framework 4. Not only will you learn how to use EF4 in a variety of applications, you'll also gain a deep understanding of its architecture and APIs. Written by Julia Lerman, the leading independent authority on the framework, Programming Entity Framework covers it all -- from the Entity Data Model and Object Services to WCF Services, MVC Apps, and unit testing. This book highlights important changes for experienced developers familiar with the earlier version. Understand the core concepts you need to make the best use of the EF4 in your applications Learn to query your data, using either LINQ to Entities or Entity SQL Create Windows Forms, WPF, ASP.NET Web Forms, and ASP.NET MVC applications Build and consume WCF Services, WCF Data Services, and WCF RIA Services Use Object Services to work directly with your entity objects Create persistent ignorant entities, repositories, and write unit tests Delve into model customization, relationship management, change tracking, data concurrency, and more Get scores of reusable examples -- written in C# (with notes on Visual Basic syntax) -- that you can implement right away

Code-First Development with Entity Framework


Author: Sergey Barskiy
Publisher: Packt Publishing Ltd
ISBN: 1784390739
Category: Computers
Page: 174
View: 7273
DOWNLOAD NOW »
This book is intended for software developers with some prior experience with the Microsoft .NET framework who want to learn how to use Entity Framework. This book will get you up and running quickly, providing many examples that illustrate all the key concepts of Entity Framework.

Entity Framework Tutorial


Author: Joydip Kanjilal
Publisher: Packt Publishing Ltd
ISBN: 1783550023
Category: Computers
Page: 274
View: 8981
DOWNLOAD NOW »
A comprehensive guide to the Entity Framework with insight into its latest features and optimizations for responsive data access in your projects About This Book Create Entity data models from your database and use them in your applications Learn about the Entity Client data provider and write statements in Entity SQL to perform CRUD operations Explore ADO.NET Data Services and how they work with the Entity Framework Who This Book Is For If you are a C# developer who wants to learn a new way of querying data and utilizing it in applications efficiently for data binding or other operations, then this book is for you. Basic knowledge of ADO.NET is assumed. What You Will Learn Explore the features of the ADO.NET Entity Framework Understand the concepts of entities and their relationships Create an Entity Data Model using the ADO.NET Entity Data Model Designer and the EdmGen tool Extend existing Entity Types to create your own Entity Types Write programs against the Entity Data Model to perform CRUD operations Discover ADO.NET Data Services and learn how they can be used with the Entity Framework Familiarize yourself with WCF Data Services (formerly ADO.NET Data Services) Apply Code First, Model First and Database First approaches In Detail The ADO.NET Entity Framework from Microsoft is a new ADO.NET development framework that provides a level of abstraction for data access strategies and solves the impedance mismatch issues that exist between different data models. This book explores Microsoft's Entity Framework and explains how it can used to build enterprise level applications. It will also teach you how you can work with RESTful Services and Google's Protocol Buffers with Entity Framework and WCF. You will explore how to use Entity Framework with ASP.NET Web API and also how to consume the data exposed by Entity Framework from client applications of varying types, i.e., ASP.NET MVC, WPF and Silverlight. You will familiarize yourself with the new features and improvements introduced in Entity Framework including enhanced POCO support, template-based code generation, tooling consolidation and connection resiliency. By the end of the book, you will be able to successfully extend the new functionalities of Entity framework into your project. Style and approach This book is a step-by-step tutorial providing hands-on code examples with detailed explanations. The book aims to explain the concepts of the Entity Framework and illustrate how you can use these in applications with a tutorial based approach.

Entity Framework 6 Recipes


Author: Zeeshan Hirani,Larry Tenny,Nitin Gupta,Brian Driscoll,Robert Vettor,Devlin Liles
Publisher: Apress
ISBN: 1430257881
Category: Computers
Page: 548
View: 5647
DOWNLOAD NOW »
Entity Framework 6 Recipes provides an exhaustive collection of ready-to-use code solutions for Entity Framework, Microsoft's model-centric, data-access platform for the .NET Framework and ASP.NET development. With this book, you will learn the core concepts of Entity Framework through a broad range of clear and concise solutions to everyday data access tasks. Armed with this experience, you will be ready to dive deep into Entity Framework, experiment with new approaches, and develop ways to solve even the most difficult data access challenges. If you are a developer who likes to learn by example, then this is the right book for you. Gives ready-to-use, real-world recipes to help you with everyday tasks Places strong focus on DbContext and the Code First approach Covers new features such as Asynch Query and Save, Codebased Configuration, Connection Resiliency, Dependency Resolution, and much more What you’ll learn Implement basic data access design patterns using Entity Framework. Seamlessly model your solutions across both code and data. Provide data access to Windows 8 and Metro applications. Integrate with WCF Data Services Improve data access performance. Simplify and reduce your code through data binding. Who this book is for Entity Framework 6 Recipes is for anyone learning Microsoft’s Entity Framework—Microsoft’s primary data access platform in the .NET Framework. If you have ever struggled to learn a new technology, programming model, or way of doing something, you know how helpful simple and real-world examples can be. For the beginning developer, this book provides concrete examples for common data access tasks. For developers having experience with previous Microsoft data access platforms, this book provides a task-by-task mapping between previous approaches and the patterns used in Entity Framework. Table of Contents Getting Started with Entity Framework Entity Data Modeling Fundamentals Querying an Entity Data Model Using Entity Framework in ASP.NET Loading Entities and Navigation Properties Beyond the Basics with Modeling and Inheritance Working with Object Services Plain Old CLR Objects Using the Entity Framework in N-Tier Applications Stored Procedures Functions Customizing Entity Framework Objects Improving Performance Concurrency

Mastering Entity Framework


Author: Rahul Rajat Singh
Publisher: Packt Publishing Ltd
ISBN: 1784392863
Category: Computers
Page: 304
View: 9143
DOWNLOAD NOW »
This book is for .NET developers who are developing data-driven applications using ADO.NET or other data access technologies. This book is going to give you everything you need to effectively develop and manage data-driven applications using Entity Framework.

Entity Framework 4 in Action


Author: Stefano Mostarda,Marcos De Sanctis,Daniele Bochicchio
Publisher: Manning Publications
ISBN: 9781935182184
Category: Computers
Page: 546
View: 8849
DOWNLOAD NOW »
Microsoft Entity Framework in Actionis an introduction to the Entity Framework for developers working in .NET who possess a working knowledge of ADO.NET. Beginning with a review of the core ideas behind the objectrelational management (ORM) model, it outlines how Entity Framework offers a smooth transition from a traditional ADO.NET approach. Featuring numerous examples and in-depth case studies, the book explores the Entity Framework story in clear, easy-to-follow detail. The infrastructure and inner workings are highlighted as needed and where they relate to particular features. This book clearly explains what Entity Framework can do for the reader, without getting sidetracked in the theoretical details of implementation. It is an ideal resource for the developer who needs to implement a solution using Microsoft technologies and has made the decision to use the Entity Framework.

Domain-driven Design

Tackling Complexity in the Heart of Software
Author: Eric Evans
Publisher: Addison-Wesley Professional
ISBN: 0321125215
Category: Computers
Page: 529
View: 6425
DOWNLOAD NOW »
Describes ways to incorporate domain modeling into software development.

LINQ Pocket Reference


Author: Joseph Albahari,Ben Albahari
Publisher: "O'Reilly Media, Inc."
ISBN: 0596519249
Category: Computers
Page: 161
View: 2750
DOWNLOAD NOW »
This guide has the detail needed to grasp Microsoft's new querying technology, and concise explanations to help users learn it quickly. For those already applying LINQ, the book serves as an on-the-job reference.

ASP.NET MVC with Entity Framework and CSS


Author: Lee Naylor
Publisher: Apress
ISBN: 1484221370
Category: Computers
Page: 608
View: 6726
DOWNLOAD NOW »
Get up and running quickly with Microsoft ASP.NET MVC and Entity Framework as you build and deploy complex websites. By using a fully working example retail website you will learn solutions to real-world issues that developers frequently encounter. Whether you are a novice developer or an experienced .NET developer wishing to learn more about MVC and Entity Framework, author Lee Naylor will teach you how to develop a detailed database-driven example website using Microsoft ASP.NET and Entity Framework Code First with fully explained code examples. What You Will Learn: • Get up and running quickly with ASP.NET MVC and Entity Framework to build a complex website to display and manage several related entities• Integrate identity code into a project• Understand advanced topics, including asynchronous database access and managing data conflicts• Work with Microsoft Azure, including remote debugging and database access• Develop your CSS skills, including animations and media queries for use with tablet or mobile/cell phone devices Who This Book Is For: Novice developers new to the subject through to more experienced ASP.NET web forms developers looking to migrate from web forms to MVC and Entity Framework. The book assumes some programming knowledge such as object-oriented programming concepts and a basic knowledge of C#.

Entity Framework Core Cookbook


Author: Ricardo Peres
Publisher: Packt Publishing Ltd
ISBN: 1785880586
Category: Computers
Page: 324
View: 1442
DOWNLOAD NOW »
Leverage the full potential of Entity Framework with this collection of powerful and easy-to-follow recipes About This Book Learn how to use the new features of Entity Framework Core 1 Improve your queries by leveraging some of the advanced features Avoid common pitfalls Make the best of your .NET APIs by integrating with Entity Framework Who This Book Is For This book is for .NET developers who work with relational databases on a daily basis and understand the basics of Entity Framework, but now want to use it in a more efficient manner. You are expected to have some prior knowledge of Entity Framework. What You Will Learn Master the technique of using sequence key generators Validate groups of entities that are to be saved / updated Improve MVC applications that cover applications developed using ASP.NET MVC Core 1 Retrieve database information (table, column names, and so on) for entities Discover optimistic concurrency control and pessimistic concurrency control. Implement Multilatency on the data side of things. Enhance the performance and/or scalability of Entity Framework Core Explore and overcome the pitfalls of Entity Framework Core In Detail Entity Framework is a highly recommended Object Relation Mapping tool used to build complex systems. In order to survive in this growing market, the knowledge of a framework that helps provide easy access to databases, that is, Entity Framework has become a necessity. This book will provide .NET developers with this knowledge and guide them through working efficiently with data using Entity Framework Core. You will start off by learning how to efficiently use Entity Framework in practical situations. You will gain a deep understanding of mapping properties and find out how to handle validation in Entity Framework. The book will then explain how to work with transactions and stored procedures along with improving Entity Framework using query libraries. Moving on, you will learn to improve complex query scenarios and implement transaction and concurrency control. You will then be taught to improve and develop Entity Framework in complex business scenarios. With the concluding chapter on performance and scalability, this book will get you ready to use Entity Framework proficiently. Style and approach Filled with rich code-based examples, this book takes a recipe-based approach that will teach .NET developers to improve their understanding of Entity Framework and help them effortlessly apply this knowledge in everyday situations.

Mastering Entity Framework Core 2.0

Dive into entities, relationships, querying, performance optimization, and more, to learn efficient data-driven development
Author: Prabhakaran Anbazhagan
Publisher: Packt Publishing Ltd
ISBN: 1788296214
Category: Computers
Page: 361
View: 7196
DOWNLOAD NOW »
Learn how to leverage the features of the new Entity Framework Core APIs and use them to build pure .NET Core applications. About This Book Learn how to effectively manage your database to make it more productive and maintainable. Write simplified queries using LINQ to acquire the desired data easily Raise the abstraction level from data to objects so teams can function independently, resulting in easily maintainable code Who This Book Is For This book is for .NET Core developers who would like to integrate EF Core in their application. Prior knowledge of .NET Core and C# is assumed. What You Will Learn Create databases and perform CRUD operations on them Understand and build relationships (related to entities, keys, and properties) Understand in-built, custom, and remote validation (both client and server side) You will learn to handle concurrency to build responsive applications You will handle transactions and multi-tenancy while also improving performance In Detail Being able to create and maintain data-oriented applications has become crucial in modern programming. This is why Microsoft came up with Entity Framework so architects can optimize storage requirements while also writing efficient and maintainable application code. This book is a comprehensive guide that will show how to utilize the power of the Entity Framework to build efficient .NET Core applications. It not only teaches all the fundamentals of Entity Framework Core but also demonstrates how to use it practically so you can implement it in your software development. The book is divided into three modules. The first module focuses on building entities and relationships. Here you will also learn about different mapping techniques, which will help you choose the one best suited to your application design. Once you have understood the fundamentals of the Entity Framework, you will move on to learn about validation and querying in the second module. It will also teach you how to execute raw SQL queries and extend the Entity Framework to leverage Query Objects using the Query Object Pattern. The final module of the book focuses on performance optimization and managing the security of your application. You will learn to implement failsafe mechanisms using concurrency tokens. The book also explores row-level security and multitenant databases in detail. By the end of the book, you will be proficient in implementing Entity Framework on your .NET Core applications. Style and approach This book is filled with various examples that will help you use Entity Framework Core 2.0 to write efficient software.

Pro Entity Framework Core 2 for ASP.NET Core MVC


Author: Adam Freeman
Publisher: Apress
ISBN: 1484234359
Category: Computers
Page: 650
View: 9734
DOWNLOAD NOW »
Model, map, and access data effectively with Entity Framework Core 2, the latest evolution of Microsoft’s object-relational mapping framework. You will access data utilizing .NET objects via the most common data access layer used in ASP.NET Core MVC 2 projects. Best-selling author Adam Freeman explains how to get the most from Entity Framework Core 2 in MVC projects. He begins by describing the different ways that Entity Framework Core 2 can model data and the different types of databases that can be used. He then shows you how to use Entity Framework Core 2 in your own MVC projects, starting from the nuts and bolts and building up to the most advanced and sophisticated features, going in-depth to give you the knowledge you need. Chapters include common problems and how to avoid them. What You’ll Learn Gain a solid architectural understanding of Entity Framework Core 2 Create databases using your MVC data model Create MVC models using an existing database Access data in an MVC application using Entity Framework Core 2 Use Entity Framework in RESTful Web Services Who This Book Is For ASP.NET Core MVC 2 developers who want to use Entity Framework Core 2 as the data access layer in their projects

Programming Razor

Tools for Templates in ASP.NET MVC or WebMatrix
Author: Jess Chadwick
Publisher: "O'Reilly Media, Inc."
ISBN: 1449317162
Category: Computers
Page: 120
View: 7852
DOWNLOAD NOW »
Take Razor for a test drive and discover first hand how this scripting syntax simplifies the way you create dynamic, data-driven websites. With this concise guide, you’ll work with Razor syntax by building example websites with Microsoft WebMatrix and ASP.NET MVC. You'll quickly learn how Razor lets you combine code and content in a fluid and expressive manner on Windows-based servers. Programming Razor also explores components of the Razor API, and shows you how Razor templates are turned into rendered HTML. By the end of this book, you'll be able to create Razor-based websites with custom extensions that meet the specific needs of your projects. Use Razor with Microsoft WebMatrix to build a working blog, complete with data Organize and manage your web application, using Razor features for layouts, sections, and partial views Create clean and effective ASP.NET MVC views with the Razor View Engine Learn how the Razor API interprets Razor templates and turns them into executable .NET code Implement advanced techniques for exposing reusable code and sharing ASP.NET MVC views across projects

Microsoft ADO.NET Entity Framework Step by Step


Author: John Paul Mueller
Publisher: Pearson Education
ISBN: 0735675694
Category: Computers
Page: 448
View: 9980
DOWNLOAD NOW »
Your hands-on guide to Entity Framework fundamentals Expand your expertise—and teach yourself the fundamentals of the Microsoft ADO.NET Entity Framework 5. If you have previous programming experience but are new to the Entity Framework, this tutorial delivers the step-by-step guidance and coding exercises you need to master core topics and techniques. Discover how to: Access data in a managed way—using minimal code Apply three workflows supported by the Entity Framework Perform essential tasks with full automation in place Manipulate data with both LINQ and Entity SQL Create examples that rely on Table-Valued Functions Determine the remedies for Entity-specific exceptions Explore the use of optimistic and pessimistic concurrency Define mappings between your applications and data sources

Learn WPF MVVM - XAML, C# and the MVVM pattern


Author: Arnaud Weil
Publisher: Lulu.com
ISBN: 1326847996
Category: Computers
Page: 168
View: 9113
DOWNLOAD NOW »
You're a developer who knows nothing to WPF. Which is fine, except that you need to start coding your next application using WPF and the MVVM pattern. Don't worry: I have you covered. I've been training hundreds of developers like you during 15 years, and converted my experience into this book. I know from experience teaching what takes more time to learn in WPF, and will spend time only where appropriate. Plus this book is packed with exercises which build up into a full project: you develop a small e-commerce sample application. You'll allow users to browse for products, and you'll also create a back-end where users will be able to list and edit products. Read this book, and you can code your WPF application within a week.

Exam Ref 70-487 Developing Windows Azure and Web Services (MCSD)

Developing Windows Azure and Web Services
Author: William Ryan,Wouter de Kort,Shane Milton
Publisher: Pearson Education
ISBN: 0735677395
Category: Computers
Page: 425
View: 8840
DOWNLOAD NOW »
Prepare for Microsoft Exam 70-487—and help demonstrate your real-world mastery of developing Windows Azure and web services. Designed for experienced developers ready to advance their status, Exam Ref focuses on the critical-thinking and decision-making acumen needed for success at the Microsoft Specialist level. Focus on the expertise measured by these objectives: Accessing data Querying and manipulating data by using the Entity Framework Designing and implementing WCF Services Creating and consuming Web API-based services Deploying web applications and services This Microsoft Exam Ref: Organizes its coverage by exam objectives. Features strategic, what-if scenarios to challenge you.

Learning MySQL


Author: Seyed Tahaghoghi,Hugh E. Williams
Publisher: "O'Reilly Media, Inc."
ISBN: 0596008643
Category: Computers
Page: 598
View: 4788
DOWNLOAD NOW »
Presents instructions on using MySQL, covering such topics as installation, querying, user management, security, and backups and recovery.