-
| Related DevelopMentor Courses | 34 Results found Showing page 1 of 2 Next > |
- Entity Framework 5 + Enumerations => What’s not to love?
Entity Framework 5 now supports enumerations (when using Visual Studio 2012 and targeting the.NET 4.5 framework). Next we’ll generate an entity data model from the database. Using enumerations with Entity Framework 5. We need to change the type of the ‘Habitable’ column in the database to a tinyint and we need to modify the information in the conceptual schema to inform the entity framework of our change in design: The screenshot shows that we need to change the underlying type as well as check the “Set Flags attribute”.
DevelopMentor Courses - Sunday, September 2, 2012 - Entity Framework 5 is available
Entity Framework 5 is included in Visual Studio 2012, but is also available to users of Visual Studio 2010 (as a NuGet package: [link] ). Note: Some Entity Framework 5 features are only available when writing an application that targets.NET 4.5. Entity FrameworkThis includes enum support, spatial data types, table-valued functions and the performance improvements. Read more about what is new on the MSDN ADO.NET blog: [link].
DevelopMentor Courses - Sunday, August 26, 2012 - Type-Safe Include extension method for Entity Framework
If you’re interested in the Include method in a LINQ to Entities queries to be type-safe, then Joe Ferner has the answer for you in this post: Type-Safe Entity Framework Include: [link]. Entity Framework
DevelopMentor Courses - Tuesday, January 24, 2012 - Generating an index in the database using Entity Framework Code First
If you’re using Entity Framework Code First, then you may want to create an index on some of your table. Entity FrameworkThe way to do this is to call “Database.ExecuteSqlCommand” in the “Seed” method of your database initializer. The sample below shows how it is done (thanks to Rolf for pointing me in the right direction): using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Entity; using System.ComponentModel.DataAnnotations; namespace CodeFirstPlayground. {. class Program. {. static void Main( string [] args ). {.
DevelopMentor Courses - Tuesday, January 17, 2012 - Logging and tracing with Entity Framework
If you’re using the Entity Framework and don’t want to implement ToTraceString() at strategic points in your code in order to see what kind of SQL statements are getting generated then check out one of the following: Community Entity Framework Provider Wrappers (free). Entity Framework Profiler. Entity Framework LINQlink] /. Or use NuGet: Install-Package CommunityEFProviderWrappers.EFTracingProvider. link].
DevelopMentor Courses - Wednesday, June 29, 2011 - Tony Sneed: Build Async Services with ASP.NET Web API and Entity Framework 6
If you are building web services that interact with a database, chances are they are not written in a scalable fashion. Web services based either on WCF, which supports both SOAP and REST, or on ASP.NET Web API, which exclusively … Continue reading →
DevelopMentor Courses - Friday, March 22, 2013 - Entity Framework - Model First: One-to-One relationship
If you’re doing Model First with Entity Framework you may run into a scenario where you want to design a 1-to-1 relationship, but also have a foreign key be available on your entity. The default behavior in Entity Framework when doing a 1-to-1 relationship (with Model First), or 1-to-0.1 Add the entity that goes on the 1 side of the association, give it a primary key of type integer. Add the entity that goes on the 0.1 Click on the 1 entity and add an association, make it a 1-to-0.1, Entity Framework LINQ
DevelopMentor Courses - Wednesday, June 29, 2011 - Entity Framework – Model First: Generating DDL for Complex Types
The complex type consists of 4 ‘fields’: CountryCode, AreaCode, Number and Extension: Each ‘field’ has properties set: The great part is that this is fully supported by the DDL generator, so right click on the Entity Framework Designer in Visual Studio 2010 and choose ‘Generate Database From Model…’ and the ‘Artist’ table will be generated as: -- --. -- Entity Designer DDL Script for SQL Server 2005, 2008, and Azure. -- --. -- --. -- Creating all tables. -- --. -- Creating table 'Artists'. CREATE TABLE [dbo].[Artists] Artists] (. ALTER TABLE [dbo].[Artists]. Artists].
DevelopMentor Courses - Saturday, July 2, 2011 - Tony Sneed: Trackable Entities: N-Tier Support for Entity Framework
Consider the assortment of n-tier technologies now consigned to the ash heap of history: WCF RIA Services, Self-Tracking Entities, and good old typed DataSets. 'Writing N-Tier apps can get complicated fast. These have all suffered from lack of interoperability and … Continue reading →
DevelopMentor Courses - Saturday, April 27, 2013 - Lynn Langit: Real-world Entity Framework
Here’s the deck and sample code from our talk ‘Real-world Entity Framework’ at DevTeach Vancouver, BC. In this talk we show the mechanics of working with database-first EF, using an order entry system. Our code examples include both read and … Continue reading →
DevelopMentor Courses - Tuesday, May 29, 2012 - Screening C# Candidates: Let’s Play 20 Questions!
In addition, the breadth of the technical spectrum is mind-boggling, and a developer needs the capacity to absorb vast quantities of knowledge from various parts of the framework. For example, someone might be called upon to build a WPF app retrieving data from a WCF service that queries a SQL database using Entity Framework with Ninject for dependency injection and MOQ for unit testing. Over the past year I was involved in the process of interviewing candidates for both mid and senior level developer positions. This is the purpose of the technical phone screen. > no 5.
DevelopMentor Courses - Tuesday, February 28, 2012 - What’s new in ApprovalTests.Net v.20?
png image, such as the one shown below: Entity Framework support People have long pondered how to test Entity Framework. ASP routing support As community contributor, Krzysztof Ko?mic mic said in his NDC talk … Using ApprovalTests makes what was implicit , explicit so that the item can now be tested Inspired by his talk, Jim Counts and I created a new method in AspApprovals to make the formerly implicit ASP routing explicit and now easily able to be tested. This can be particularly troublesome when changing an existing, unfamiliar piece of code. Happy testing.
DevelopMentor Courses - Thursday, August 9, 2012 - Guerrilla.NET (US) Training
EF : Decouple your entity model from the data using Plain Old CLR Objects (POCOs). EF : Write classes that can track changes to their own state for n-tier development with Entity Framework. MEF : Leverage Managed Extensibility Framework (MEF),NET 4's built-in dependency management system, to implement DI and IoC seamlessly in your applications. EF : Decouple your entity model from the data using Plain Old CLR Objects (POCOs). EF : Write classes that can track changes to their own state for n-tier development with Entity Framework. and jQuery.
DevelopMentor Courses - Tuesday, March 1, 2011 - Guerrilla.NET (UK) Training
Create declarative services using workflow that can be deployed as simple text files Decouple your entity model from the data using Plain Old CLR Objects (POCOs). Create robust code using unit testing frameworks and mocking Simplify your service deployment with zero config services with WCF 4.0. What does Entity Framework do for me and how can I use it effectively? Day 1 Entity Framework Introduction The Entity Framework is an Object Relational Mapping (ORM) layer released in.NET 3.5 Leverage new features of C# 4.0, couldn't? Register now.
DevelopMentor Courses - Tuesday, March 1, 2011 - Llewellyn Falco (Approval Tests): What's new in ApprovalTests.Net v.22 ?
This goes along with added support for: NHibernate Entity Framework DbContext (V 4.1+) Async [Contributors: Jake Ginnivan ] XUnit supports testing of methods using the async and await keywords. ApprovalTests.Net v.22 is here, you can get it on Nuget Here's what's new: UTF8 Support [Contributors: Scott Reed & Maurice De Beijer] Text Files will now work with UTF with (many/most) Diff Tools. This basically comes down to making everything UTF8, and including the bom (byte order mark) header in the text files. This is based on the ‘Testing the Weather’ pattern.
DevelopMentor Courses - Tuesday, February 5, 2013 - Speaking at Augusta Tech Talk
There will be 2 sessions; one about NuGet and one about Entity Framework 5. The invitations just went out: I’ll be presenting at Augusta Tech Talk on February 25th 2013. For more information and registration got to: [link]. Community
DevelopMentor Courses - Wednesday, January 23, 2013 - Essential SQL Azure Training
Learn how to use SQL Azure with Entity Framework. LINQ and Entity Framework Entity Framework has become the standard Object Relational Mapper (ORM) for.NET developers. We also talk about ways to reduce the amount of data Entity Framework retrieves. Learn to write code for maximum database performance, re-usability, and application modularity. Discover how to handle the transient nature of the cloud. You'll get answers to these questions: How can I improve and evaluate the performance of my queries? What's the best way to secure my data?
DevelopMentor Courses - Thursday, May 19, 2011 - Mark Blomsma: Upcoming Events
Here are some events in which I’m involved or which are being organized by friends: February 25, Maine Developer Network (Augusta, Maine): Two topics in this meeting: First What’s New in Entity Framework 5 and second Using NuGet and creating packages. More on: [link]. February 26, Bangor Area.NET Developer (Bangor, Maine): Two topics in this meeting. First Windows Azure and second How to get free/cheap Microsoft software. More on: [link]. March 18, SDN Event (Zeist, The Netherlands): A bunch of topics ranging from Delphi for iOS to Windows Azure to SOLID principles.
DevelopMentor Courses - Saturday, February 16, 2013 - Mark Blomsma: Entity Framework 5 is available
Entity Framework 5 is included in Visual Studio 2012, but is also available to users of Visual Studio 2010 (as a NuGet package: [link] ). Note: Some Entity Framework 5 features are only available when writing an application that targets.NET 4.5. This includes enum support, spatial data types, table-valued functions and the performance improvements. Read more about what is new on the MSDN ADO.NET blog: [link]. Update [08-27-2012] : Julie Lerman has an excellent post describing the difference between running EF5 in a.NET 4 versus a.NET 4.5
DevelopMentor Courses - Sunday, August 26, 2012 - Scott Reed: Repository pattern improvements
Beyond the Basics • LINQ to Objects and LINQ to XML • Entity Framework • Model-View-ViewModel for WPF and Silverlight • PFx: Task and The Parallel I just finished a Guerrilla.NET in Boston with Michael Kennedy and Mark Smith. Here are the topics we covered. Introduction to WPF and Silverlight • ASP.NET MVC 3.0:
DevelopMentor Courses - Saturday, May 7, 2011