Tag Archives: C#

Chlodny series Day 6: ASP.NET Web API Get configuration

ASP.NET Web API exposes data through a controller called an API controller.  This controller can be added to an existing controller.  To add a new controller: Right-click the controllers folder in the ChlodnyWebApi project and select Add –> Controller. In … Continue reading

Posted in MVC, Web | Tagged , , , ,

Chlodny series Day 5: Brief: What is ASP.NET Web API?

ASP.NET Web API is the new product born from WCF for jQuery.  Web API allows services to be created over HTTP rather then utilizing a service contract (SOAP or WS). Web API  creates an avenue for developers to expose data … Continue reading

Posted in Entity Framework, MVC, Web | Tagged , , , ,

Chlodny series Day 4: Entity Framework Code First Migration

Before Entity Framework Code First Migration was introduced in version 4.3.  Developers had a few options if the domain model was different from the database schema. CreateDatabaseIfNotExists : Pretty self explanatory, if on application start Entity Framework cannot find the … Continue reading

Posted in Entity Framework, MVC, Web | Tagged , , , ,

Chlodny series Day 3: Connect Web Api to Entity Framework

Now that the existing database has been reversed engineered and the domain classes are set, it is time to wire up those domain classes to the main project. Add the DataAccess project to the ChlodnyWebApi project.

Posted in Entity Framework, MVC, Web | Tagged , , , , | 1 Comment

Chlodny series Day 2: Reverse Engineer Existing Database

To continue on with the series of creating an application that utilizes ASP.NET Web API. This demo application utilizes the Chinook database.  In order to use Entity Framework code first with the lease amount of hassle the application will use … Continue reading

Posted in Entity Framework, MVC, Web | Tagged , , , , | 1 Comment

Chlodny series Day 1: Setup and Explanation

Purpose: Create a application that shows off the awesome sauce of Entity Framework Code Frist, Entity Framework Migration, MVC4 WebApi, and HTML5 + other clients This series is to show off a step by step example application that will be … Continue reading

Posted in Entity Framework, MVC, Web | Tagged , , , ,

How to change the schema for Entity Framework Code First

By default Entity Framework will call the dbo user/schema when attempting to communicate with the database.  Today I received an exception because the tables I was calling was not [dbo].[Customer] but [Sales].[Customer].

Posted in Entity Framework | Tagged , ,

Intro to Aspect Oriented Programming with PostSharp–Part 3

To continue on from Part 2.  For this article we will talk about one of the aspects I utilize the most OnExceptionAspect Note:  This may be the last generic post, I am working on a new blog series will show … Continue reading

Posted in PostSharp | Tagged , ,

Dynamics CRM 2011 Installation: Setup failed to validate specified Reporting Services Report Server

If you saw my last Dynamics CRM 2011 Installation: "The instance name must be the same as computer name." I am learning the valuable lesson of when you replicate a VM sys-prep image be sure to change the computer name … Continue reading

Posted in CRM | Tagged , | 3 Comments

Intro to Aspect Oriented Programming with PostSharp–Part 2

To Continue on from Part 1 lets dive a little deeper into Aspect Oriented Programming utilizing a framework called PostSharp Setup Windows 7 X64 Visual Studio 2010 (if I get a large enough feedback I will switch this series to … Continue reading

Posted in PostSharp | Tagged , ,