Back-2-Basics: Exception & Event Instrumentation in .NET

Here is a video from a session I did at the San Diego .NET Developers Group Feburary of this year on TraceListeners in .NET and much more. Back-2-Basics: Exception & Event Instrumentation in .NET from David McCarter on Vimeo.

Los Angeles Code Camp 2009

I hope everyone in southern California is planning to attend this years Los Angeles Camp on 11/21 - 11/22. It's always agreat time and lots of free training! I will be presenting the following sessions and I hope you will attend. Also, check out my new .NET discussion site called DotNet Army! Building nTier Applications … Continue reading Los Angeles Code Camp 2009

Retrieving Changed Properties from the Entity Framework

On a project using the Entity Framework (3.5 SP1), I was tasked with only sending "changed" or "added" values to a back-end system to keep network traffic down.  After a lot of research and testing, I came up with the solution below. Use this code below: private static void FindChangedEntityProperties<T>(LocalEntityState state, ClientDataEntities context, ref IEnumerable<string> … Continue reading Retrieving Changed Properties from the Entity Framework

Easily Retrieve the Foreign Key from an Entity Framework Entity

Retrieving the foreign key from a related entity in the Entity Framework (3.5 SP1) is not very easy. Below is an extension method you can add to make it simple: public static int ForeignKey(this EntityReference entRef) { int keyval = 0; if (int.TryParse(entRef.EntityKey.EntityKeyValues[0].Value.ToString(), out keyval)) { return keyval; } else { return 0; } } … Continue reading Easily Retrieve the Foreign Key from an Entity Framework Entity

Orange County .NET User Group November Meeting

I hope that everyone in the Orange County area will check out my session on the Entity Framework at the November meeting of the Orange County .NET User Group. Below are downloads to the presentation, code and links for the session.Slides: Building nTier Applications with Entity Framework Services.pdf (3 MB)Code:sandiegodotnet-EFDemo.zip (945.75 KB)Links:What I Have Learned … Continue reading Orange County .NET User Group November Meeting

ADO.NET Data Services v1.5 CTP2 Now Available

ADO.NET Data Services v1.5 CTP2 is now available for download! This release (v1.5) targets the .NET Framework 3.5 SP1 & Silverlight 3 platforms and provides new client and server side features for data service developers.  What’s included in CTP2? This release includes updates to the features that were in the CTP1 release of ADO.NET Data … Continue reading ADO.NET Data Services v1.5 CTP2 Now Available

San Diego .NET User Group August Meeting

I hope every enjoyed my talk on the Entity Framework at the August meeting of the San Diego .NET User Group. Below are downloads to the presentation, code and links I mentioned.Slides: Building nTier Applications with Entity Framework Services.pdf (3 MB)Code:sandiegodotnet-EFDemo.zip (945.75 KB)Links:What I Have Learned So Far About The Entity Framework and ADO.NET Data … Continue reading San Diego .NET User Group August Meeting

VB Entity Framework Samples Now Available

Entity Framework samples have not been released in VB.NET! Check out the blog link below.Full Blog Entry: http://blogs.msdn.com/vbteam/archive/2009/06/18/vb-entity-framework-samples-now-available-lisa-feigenbaum.aspx

Phoenix and San Diego June Code Camps

I hope everyone in Arizona and southern California is planning to attend this years Desert Code Camp on 6/13 and SoCal Code Camp in San Diego on 6/27 - 6/28. It's always a great time and lots of free training! I will also be selling a limited number of my latest book "David McCarter's .NET … Continue reading Phoenix and San Diego June Code Camps

SoCal Code Camp – Fullerton

I hope everyone in southern California is planning to attend this years SoCal Code Camp at Cal State Fullerton on 1/24 - 1/25. It's always a great time and lots of free training! I will also be selling a limited number of my latest book "David McCarter's .NET Coding Standards" at my sessions for $11, … Continue reading SoCal Code Camp – Fullerton