Tag: 'dotnet'

Coding Shorts: Prototyping with Minimal APIs
Coding Shorts: Prototyping with Minimal APIs
September 8, 2021

Setting up ASP.NET Core for APIs isn't what I would called complex, but it does involve it's own set of boilerplate. To provide flexibility, .NET 6 now supports Minimal APIs, let's dig into how it works.

Coding Short: Dapper and Entity Framework
Coding Short: Dapper and Entity Framework
September 6, 2021

I get tagged in a lot of discussion about Dapper vs. Entity Framework. This feels like nHibernate v. Linq2Sql redux. Well, I think about it very differently.

Coding Shorts: Changes to Coming to Startup in .NET 6
Coding Shorts: Changes to Coming to Startup in .NET 6
August 4, 2021

.NET 6 Preview 6 is here. One of the big changes I'm looking forward to is how startup is changing. With this change, comes "Minimal APIs" too. While getting rid of the Startup class is a welcome change, I'm a little less excited about how Minimal APIs might be over-used.

Coding Shorts: Dependency Injection Explained
Coding Shorts: Dependency Injection Explained
July 5, 2021

Like most of you, I've been using Dependency Injection in my projects for quite a while. Whether it be the built-in .NET Core Dependency Injection layer, Ninject, StructureMap, Unity, MEF, etc. I've been using a DI layer to do this work for many years. But before I understood the benefit, I did so somewhat reluctantly.

Releasing My Wilder Minds Courses for Free
Releasing My Wilder Minds Courses for Free
February 28, 2021

Over three years ago I launched a new option for learning at my company's website (https://courses.wilderminds.com). I was really excited to be able to create courses that weren't the mold of my Pluralsight courses. I wanted to be able to experiment with different ways of teaching people how to code.

Updating My Projects to .NET 5
Updating My Projects to .NET 5
November 12, 2020

I hope you're watching the .NET Conf happening this week. If you have, you know that .NET 5 was finally released. This version isn't a long-term support (LTS) version, but that doesn't mean that many people will be using it in production...at least I will be.

.NET Core 3.0.1 and Entity Framework Tools Issue
.NET Core 3.0.1 and Entity Framework Tools Issue
December 1, 2019

If you're using .NET Core 3 and Entity Framework Core 3 together, you're probably using the EF Tools too. I've been running into an odd issue with it and wanted to share what is going on.

SQL Saturday and DotNetSouth in Atlanta
SQL Saturday and DotNetSouth in Atlanta
May 20, 2019

I've had a great time this week attending two events and talking about things I love: .NET and Vue.

ASP.NET Core 2.0 Released
ASP.NET Core 2.0 Released
August 14, 2017

New Course on ASP.NET 5!
New Course on ASP.NET 5!
October 11, 2015

If you read my blog, you probably already know how excited I am about ASP.NET 5. To dovetail with that, I’ve created a nine-hour course on Pluralsight that covers this brand-new technology from Redmond.

A Look at ASP.NET 5: Part 5 - The API
A Look at ASP.NET 5: Part 5 - The API
September 27, 2015

A Look at ASP.NET 5: Part 4 - MVC 6
A Look at ASP.NET 5: Part 4 - MVC 6
September 14, 2015

I had planned on finishing these a long time ago, but working on my Pluralsight course about ASP.NET 5 distracted me. Sorry about that.

.NET Fringe is Coming!
.NET Fringe is Coming!
March 22, 2015

As many of you know, I’m not in the country at the moment but if I were, I’d be going to .NET Fringe in Portland, Oregon on April 12-14th. This new conference is all about open source in the .NET space and I and really excited that a conference is focused on it.

A Look at ASP.NET 5: Part 1 - Getting Started
A Look at ASP.NET 5: Part 1 - Getting Started
February 25, 2015

Over the past few weeks I’ve been playing with the new ASP.NET 5 (also known as ASP.NET vNext) bits using Visual Studio 2015. I’m trying to make sense of the new changes and how they will affect how I build websites. I’d like to share some of what I’ve learned about the new stack.

Next Stop: Nottingham England for Node.js
Next Stop: Nottingham England for Node.js
July 31, 2014

The last stop of the week was in Nottingham. I had a chat with the Sheriff about some stolen hoodies. At least that’s what I thought he said – his accent was quite thick ; )

My Talks in Bristol England
My Talks in Bristol England
July 26, 2014

As my first talk in the UK, I was tasked with doing two talks in one day.  The group was a lot of fun and asked some key questions.

New Course on .NET Code Reviews
New Course on .NET Code Reviews
May 1, 2014

One of the things that I help companies with are code reviews. I love doing code reviews. It let’s me look at a large codebase with fresh eyes and help a company out with a set of recommendations for improving their process, teams and code.

Node.js for .NET Developers
Node.js for .NET Developers
April 6, 2014

As some of you may have noticed, I’ve been dipping more than my toe in the waters of Node.js. I think Node.js has a lot to teach us as ASP.NET Web Developers; most of it good.

Why Should You Care About NodeJS?
Why Should You Care About NodeJS?
January 17, 2014

I know that many of my readers are .NET guys and a core constituency actively hate JavaScript so bear with me and let’s talk about NodeJS for a minute.

In a Perfect World? Build Conference Wishes
In a Perfect World? Build Conference Wishes
September 9, 2011

I am headed to Build Windows next week and I have a lot of hopes for the conference. I haven’t been to a conference as an attendee alone in quite a long time. I am anxious to see what the v.Next is out of Redmond.

The Busy Developer's Guide to SQL Server Modeling
The Busy Developer's Guide to SQL Server Modeling
March 11, 2010

Url: http://msdn.microsoft.com/en-us/ff472347.aspx

Using "Clean Sources Plus" for Silverlight Projects
Using "Clean Sources Plus" for Silverlight Projects
December 1, 2008

Url: http://www.codinghorror.com/blog/archives/00036...

Book Review: LINQ in Action
Book Review: LINQ in Action
August 8, 2008

Url: http://www.amazon.com/LINQ-Action-Fabrice-Margu...

Visual Studio 2008 for .NET 2.0 Development - An Interesting Quirk
Visual Studio 2008 for .NET 2.0 Development - An Interesting Quirk
November 28, 2007

I've been converting some projects to Visual Studio 2008 (but not .NET 3.5) to see if I like the new IDE better than 2005.  So far I can't tell a big difference (though the improved Script debugging is nice).  I did find out something interesting...

Fun with .NET 3.5 - Part 1.1?
Fun with .NET 3.5 - Part 1.1?
November 21, 2007

After digging into the TimeZoneInfo class, John Meyer pointed me a the new DateTimeOffset class and a MSDN article on choosing between DateTime, DateTimeOffset and TimeZoneInfo classes. I think I am more confused by the article than before.  Here are a couple of key bits of information:

Fun with .NET 3.5 - Part 1
Fun with .NET 3.5 - Part 1
November 20, 2007

I've been digging into the .NET 3.5 runtime to find any tidbits that didn't make the front pages of everyone's blogs this last year.  You can find the big stories anywhere else, I want to cover the small interesting stories of what's new in the Framework.  I'll be covering some classes over the next few days that I've found in the .NET 3.5 Framework (and hopefully I don't find anything I didn't notice in 2.0 or 3.0, but feel free to correct me if I am wrong).

Installing Visual Studio 2008 over Beta 2
Installing Visual Studio 2008 over Beta 2
November 20, 2007

Url: http://weblogs.asp.net/scottgu/archive/2007/11/...

.NET 3.5 Namespace Map - And a Curiousity
.NET 3.5 Namespace Map - And a Curiousity
November 6, 2007

Url: http://download.microsoft.com/download/4/a/3/4a...

Genghis v0.8 Released
Genghis v0.8 Released
August 24, 2007

Url: http://www.codeplex.com/genghis

Cookies Ruined the Breadcrumbs...
Cookies Ruined the Breadcrumbs...
July 26, 2007

Trish and I are moving soon.  She's been sending me links to rugs for our new living room floor. She found an interesting one today:

OMG! Too Many Ways to do Data Access with .NET?
OMG! Too Many Ways to do Data Access with .NET?
April 30, 2007

Url: http://visitmix.com

The C# Team seems to speak out of both sides of its mouth
The C# Team seems to speak out of both sides of its mouth
March 18, 2007

Url: http://www.panopticoncentral.net/archive/2005/0...

Orcas March CTP Released
Orcas March CTP Released
February 28, 2007

Url: http://www.microsoft.com/downloads/details.aspx...

Using the Visual Studio Connection String Dialog
Using the Visual Studio Connection String Dialog
January 29, 2007

Url: http://wilderminds.blob.core.windows.net/downloads/TestDataConnect...

Sample Code for Custom ASP.NET Profile Provider
Sample Code for Custom ASP.NET Profile Provider
November 30, 2006

Url: http://wilderminds.blob.core.windows.net/downloads/adoguy.profile.zip

ADO.NET 2.0 and Asynchronous Execution
ADO.NET 2.0 and Asynchronous Execution
November 11, 2006

Url: http://msdn.microsoft.com/library/default.asp?u...

ADO.NET Team Blogs about LOB Access through SqlDataReaders...
ADO.NET Team Blogs about LOB Access through SqlDataReaders...
October 31, 2006

Url: http://blogs.msdn.com/adonet/archive/2006/10/30...

Writing Windows Live Messenger Add-ins with .NET
Writing Windows Live Messenger Add-ins with .NET
September 29, 2006

Url: http://www.devsource.com/article2/0,1895,202254...

SqlDataSource Issues...
SqlDataSource Issues...
August 25, 2006

Url: http://wilderminds.blob.core.windows.net/downloads/datasourcesgone...

ASP.NET Web Application...Wahoo!
ASP.NET Web Application...Wahoo!
August 11, 2006

Url: http://webproject.scottgu.com/Default.aspx

Announcing: "The ADO Guy Teaches: Enterprise Data Architecture"
Announcing: "The ADO Guy Teaches: Enterprise Data Architecture"
August 2, 2006

Url: http://www.dunntraining.com/EnterpriseDataArchi...

Writing your own Windows Messenger AddIn's
Writing your own Windows Messenger AddIn's
July 31, 2006

Url: http://blogs.msdn.com/katieblanch/archive/2006/...

Visual Studio 2005 Service Pack 1 - By September
Visual Studio 2005 Service Pack 1 - By September
July 25, 2006

Url: http://msdn.microsoft.com/vstudio/support/servi...

Depends for .NET?
Depends for .NET?
July 13, 2006

Url: http://www.netomatix.com/development/DependsNet...

Microsoft Requiring SQL Server Express Sucks...
Microsoft Requiring SQL Server Express Sucks...
July 11, 2006

I have been attempting to try out some new software from Microsoft (including Glidepath and Visual Studio Database Edition).  Both of these require SQL Server Express installed.  Problem is that I install a Developer Edition of SQL Server 2005 (as well as 2000) because it is more feature friendly than SQL Server Express.  Why does Microsoft insist I have a third Database server?  Why can't it prompt me to tell it what database to use, or at least attempt to find SQL Server 2005 as the default instance on the current machine?  Just stoopid in my opinion.  It's keeping me from trying out and possibly exhaulting these new interesting projects.

Fritz Onion says Essential ASP.NET 2.0 Is Almost Done!
Fritz Onion says Essential ASP.NET 2.0 Is Almost Done!
July 8, 2006

Url: http://pluralsight.com/blogs/fritz/archive/2006...

BINARY_CHECKSUM and Database Concurrency
BINARY_CHECKSUM and Database Concurrency
June 8, 2006

Url: http://wildermuth.com/viewrant.aspx?id=2053

TableAdapters - A Critique
TableAdapters - A Critique
June 8, 2006

I have been a fan of Typed DataSets since the PDC Beta of .NET.  I’ve been asked to detail my recent criticism of Table Adapters in the .NET 2.0 Typed DataSets. Here are the points that I am most concerned with:

Timestamps and TableAdapters
Timestamps and TableAdapters
June 8, 2006

I was having a chat with David Sceppa about TableAdapters recently when he mentioned that in the final VS 2005 bits, the TableAdapters will use timestamp fields for concurrency.  I told him flatly I didn't think it worked, but I was wrong.  If you create a Table in a Typed DataSet in VS 2005 and include the timestamp field in the select statement, it will use the timestamp field for concurrency.  Awesome!

SQL Server Timestamps and ADO.NET Concurrency
SQL Server Timestamps and ADO.NET Concurrency
June 7, 2006

Url: http://msdn2.microsoft.com/en-US/library/system...

WinFS Beta 2 at TechEd!?!
WinFS Beta 2 at TechEd!?!
May 23, 2006

Url: http://blogs.msdn.com/winfs/archive/2006/05/22/...

ASP.NET 2.0 TreeView without Postback?  Solved!
ASP.NET 2.0 TreeView without Postback? Solved!
May 19, 2006

I've been scratching my head at the ASP.NET 2.0 TreeView control.  This control is meant to show a tree of items and each item can have a link to it.  For example, this is what I use for my menu on the left of the page. 

My New Book is Available for Pre-Order
My New Book is Available for Pre-Order
May 3, 2006

Url: http://www.amazon.com/gp/product/0735622779/ref...

WPF Data Binding (Pt 2) Article Live on MSDN
WPF Data Binding (Pt 2) Article Live on MSDN
April 11, 2006

Url: http://msdn.microsoft.com/windowsvista/default....

MSI Cleanup Utility from MS
MSI Cleanup Utility from MS
April 8, 2006

Url: http://support.microsoft.com/default.aspx?scid=...

WPF Data Binding (Pt 1) Article Live on MSDN
WPF Data Binding (Pt 1) Article Live on MSDN
April 3, 2006

Url: http://msdn.microsoft.com/winfx/default.aspx?pu...

What ADO.NET 2.0 Book Do I Recommend?
What ADO.NET 2.0 Book Do I Recommend?
March 25, 2006

Url: http://www.amazon.com/exec/obidos/ASIN/15905951...

A Plug for Jeffrey Richter's "CLR via C#, 2e"
A Plug for Jeffrey Richter's "CLR via C#, 2e"
March 23, 2006

Url: http://www.wintellect.com/BookInformation.aspx?...

.NET Framework Gem of the Week
.NET Framework Gem of the Week
February 28, 2006

Url: http://msdn.microsoft.com/library/default.asp?u...

Fun with C# Switches
Fun with C# Switches
February 6, 2006

Url: http://msdn.microsoft.com/library/default.asp?u...

GridView, HyperLinkFIeld and FILE:// URLs
GridView, HyperLinkFIeld and FILE:// URLs
February 4, 2006

Url: http://lab.msdn.microsoft.com/productfeedback/v...

My First Taste of Cider...
My First Taste of Cider...
January 11, 2006

Web Application Project Preview from Scott Guthrie!  (This is HUGE)
Web Application Project Preview from Scott Guthrie! (This is HUGE)
December 22, 2005

Url: http://webproject.scottgu.com/

OR Mappers, Code Generators and Business Object Frameworks
OR Mappers, Code Generators and Business Object Frameworks
December 2, 2005

I am currently doing a bunch of evaluations on OR Mappers, Code Gen and Business Object Frameworks for my new book.  If anyone knows about anything great that might go unnoticed, please drop a comment or send me an email!

ObjectDataSources Don't Work with Typed DataSets
ObjectDataSources Don't Work with Typed DataSets
November 10, 2005

Url: http://msdn.microsoft.com/newsgroups/default.as...

SqlDataSources Unusable if Tables Allow NULL's
SqlDataSources Unusable if Tables Allow NULL's
November 10, 2005

I've been working on a problem for a client's project.  We are doing pretty raw RAD design for a small intranet project so I thought, hey let's just do SqlDataSources to get the pages up and running fast.  This works fine *if* we don't want any concurrency.

New ASP.NET 2.0 Version of The ADO Guy
New ASP.NET 2.0 Version of The ADO Guy
November 7, 2005

Welcome to the new version of The ADO Guy.  Most of the changes are under the covers, but there are a few things to note:

My First Days with the RTM
My First Days with the RTM
October 31, 2005

Ian Griffiths on AppDomain Isolation vs. Process Isolation
Ian Griffiths on AppDomain Isolation vs. Process Isolation
October 16, 2005

Url: http://discuss.develop.com/archives/wa.exe?A2=i...

WWF Now Unofficially WF...
WWF Now Unofficially WF...
October 14, 2005

Url: http://blogs.msdn.com/scottwoo/archive/2005/10/...

How to share Forms Authentication between a 1.x Site and a 2.0 Site in the Same Domain
How to share Forms Authentication between a 1.x Site and a 2.0 Site in the Same Domain
October 12, 2005

There are several blogs that have discussed how to share an auth cookie between sites in a farm and how to do a true single-signon for a domain. Mark Brooks pointed me to these that help a lot:

Compile ASP.NET 2.0 Site to One Assembly!
Compile ASP.NET 2.0 Site to One Assembly!
September 26, 2005

Url: http://forums.asp.net/1039804/ShowPost.aspx

Nasty ASP.NET 2.0 Bug...Postponed?
Nasty ASP.NET 2.0 Bug...Postponed?
September 23, 2005

Url: http://lab.msdn.microsoft.com/productfeedback/v...

Problems Creating Custom DataSource Enabled Controls in ASP.NET 2.0
Problems Creating Custom DataSource Enabled Controls in ASP.NET 2.0
August 27, 2005

Url: http://lab.msdn.microsoft.com/productfeedback/v...

Visual Studio Beta 3?
Visual Studio Beta 3?
August 25, 2005

Url: http://lab.msdn.microsoft.com/productfeedback/v...

My First XAML App...
My First XAML App...
August 20, 2005

It's not finished yet, but I am working on a Font Browser using Avalon.  It's fun to work with XAML and code-behind, but without splitter or treeview controls its hard to make something really fun.  I am also working on a database browser with Avalon, but until I find a tree view that project is dead.

Digging Deep into Avalon (MPF) Again...
Digging Deep into Avalon (MPF) Again...
August 19, 2005

Re-writing ADOGuy.com for ASP.NET 2.0
Re-writing ADOGuy.com for ASP.NET 2.0
August 9, 2005

Back in the day when ASP.NET shipped, I converted this site from the existing ASP based site.  As an exercise to really bring in some new features I've wanted and to lose the ASP legacy (I actually still have a page or two that uses string concatenation to put together HTML Tables), I want to do a full re-write of the site. 

Rewriting ADOGuy.com: Part 1 - Requirements
Rewriting ADOGuy.com: Part 1 - Requirements
August 9, 2005

For the new wildermuth.com, I have the following requirements:

Of Enum, FlagsAttribute and Enum.Parse
Of Enum, FlagsAttribute and Enum.Parse
August 5, 2005

I found it very interesting in a little test that the Flags attribute doesn't seem to change the way that the CLR numbers Enumerations.  So that this enumeration:

VS 2005 Class Diagrams...
VS 2005 Class Diagrams...
August 4, 2005

Master-Detail in ASP.NET 2.0 is Pretty Cool
Master-Detail in ASP.NET 2.0 is Pretty Cool
July 26, 2005

Button.OnClientClick() in ASP.NET 2.0 Rocks...
Button.OnClientClick() in ASP.NET 2.0 Rocks...
July 3, 2005

This new property (*not* event), allows you to wire up clientside code to be executed before the server-side onclick is handled.  In the old days we had to do this manually.  For example, this is how you would hook up a simple confirmation dialog:

ASP.NET 2.0: How SqlProfileProvider Stores its Data...
ASP.NET 2.0: How SqlProfileProvider Stores its Data...
July 1, 2005

This probably isn't entirely correct since I am just looking at the output (e.g. the database rows) to determine this.  For each object in profile (i.e. Users), there is a single row in the aspnet_Profile table.  This table is made up like so:

Why are ASP.NET 2.0 Projects so different from regular projects...
Why are ASP.NET 2.0 Projects so different from regular projects...
July 1, 2005

I am working on a portal project with ASP.NET 2.0 and I am loving it.  Lots of stuff is in the box that I need.  The project is using VB.NET so I wanted to make sure that everything was Option Explcit On and Option Strict On...but since it is a Web Application, the normal property pages are nowhere to be found (unless I am missing it).  If I create any other project type (I think), I can look at the project property pages and see the Compile tab:

Well Thought Out Blog on Typed DataSets
Well Thought Out Blog on Typed DataSets
June 21, 2005

Url: http://jelle.druyts.net/PermaLink.aspx?guid=616...

Oracle 10g Supporting the CLR?
Oracle 10g Supporting the CLR?
June 20, 2005

Url: http://news.com.com/Oracle+readies+second+grid+...

DataSet.ClearBeforeFill? (UPDATED!)
DataSet.ClearBeforeFill? (UPDATED!)
June 18, 2005

In previous builds, the DataSet had a property on them that said whether they should clear the DataSet whenever it is Filled by a DataAdapter.  It seems to be missing in the latest builds.  I actually prefer this because the nature of DataSets (and often overlooked) is that successive DataAdapter.Fill's will allow a DataSet to grow incrementally.  New rows will be added, and existing rows will be updated (unless it is dirty, then you would get an exception). 

New ASP.NET 2.0 Things I love!
New ASP.NET 2.0 Things I love!
June 17, 2005

I've been digging deep in to ASP.NET 2.0 the last couple weeks and I have been pleasantly surprised by a number of nice changes that probably didn't make the new features lists:

.NET 2.0 Benchmarks Galore!
.NET 2.0 Benchmarks Galore!
June 14, 2005

Url: http://www.theserverside.net/articles/showartic...

Postposed Features of ASP.NET 2.0
Postposed Features of ASP.NET 2.0
June 14, 2005

Url: http://msdn.microsoft.com/asp.net/whidbey/beta2...

BizTalk 2006 November 7th?
BizTalk 2006 November 7th?
June 8, 2005

SQL Server CLR Integration: Part 2
SQL Server CLR Integration: Part 2
June 3, 2005

Url: http://www.devsource.com/article2/0,1759,182186...

New Indigo/Avalon Bits work with VS Beta 2
New Indigo/Avalon Bits work with VS Beta 2
May 23, 2005

Url: http://www.microsoft.com/downloads/details.aspx...

DataSets vs. Custom Entities Again...
DataSets vs. Custom Entities Again...
May 21, 2005

Url: http://www.devcow.com/weblogs/To+Use+DataSets+O...

Jim Gray Discusses 2 vs 3 Tier Model, et al.
Jim Gray Discusses 2 vs 3 Tier Model, et al.
March 28, 2005

Url: http://channel9.msdn.com/ShowPost.aspx?PostID=5...

Why I Don't Like the Data Access Block (in the Enterprise library, circa Jan 05)
Why I Don't Like the Data Access Block (in the Enterprise library, circa Jan 05)
March 28, 2005

Url: http://wildermuth.com/content.aspx?id=rantview&...

Why I Don't Like the Data Access Block (v2)
Why I Don't Like the Data Access Block (v2)
March 28, 2005

Url: http://www.microsoft.com/downloads/details.aspx...

101 Uses for Nested Classes
101 Uses for Nested Classes
March 25, 2005

Url: http://www.windojitsu.com/blog/nestedclasses101...

More Perplexed by .NET 2.0
More Perplexed by .NET 2.0
March 22, 2005

The Death of Inherited Typed DataSets?
The Death of Inherited Typed DataSets?
March 12, 2005

I've spent most of the last week in Redmond seeing some new stuff and meeting up with old friends.  While I was here I scheduled some time to sit down with Steve Lasker of the Visual Basic/Visual Studio Team.  His team in in charge of the Typed DataSet in Whidbey. 

Scott's Right...I hope they are kidding...
Scott's Right...I hope they are kidding...
March 10, 2005

Url: http://www.hanselman.com/blog/PermaLink,guid,b3...

.NET Search Engine
.NET Search Engine
March 8, 2005

Url: http://www.dotlucene.net/

Creating Rich Playlists
Creating Rich Playlists
March 3, 2005

Url: http://wilderminds.blob.core.windows.net/downloads/autoplaylist.zip

Raise your hand if you know what DataAdapter.TableMappings is for...
Raise your hand if you know what DataAdapter.TableMappings is for...
February 23, 2005

Url: http://msdn.microsoft.com/library/default.asp?u...

New Oracle .NET Technology Center
New Oracle .NET Technology Center
February 21, 2005

Url: http://www.oracle.com/technology/tech/dotnet/in...

Community Server 1.0 Released!
Community Server 1.0 Released!
February 19, 2005

Url: http://www.communityserver.org/

DataAdapters and Component Surfaces (or why I love using the toolset)
DataAdapters and Component Surfaces (or why I love using the toolset)
February 11, 2005

I always forget this blog this, but when I am doing a database project using Typed DataSets, I almost always use a Component Surface to build my DataAdapters interactively.  For example:

Enjoying Compact Framework Development
Enjoying Compact Framework Development
January 26, 2005

Url: http://www.atlantamobility.net/

In Response to Sahil Malik's Null problem
In Response to Sahil Malik's Null problem
January 25, 2005

Url: http://dotnetjunkies.com/WebLog/sahilmalik/arch...

DataSet Updater Helper Method
DataSet Updater Helper Method
January 19, 2005

For some time now I've been pushing the idea of doing DataSet updates using DataAdapters that use a 1-to-1 relationship between DataAdapter and logical data elements (e.g. Tables or Stored Procedures usually).  This is especially true when you are dealing with related tables in DataSets (the sweet spot for DataSets IMHO).  I've continually forgotten to post this code that I use to do these updates.  The idea of this code is for the user to provide arrays of Tables and DataAdapters that imply the order of the updates.  For example

Hoping that Microsoft Makes the ADO.NET PowerPack Obsolete
Hoping that Microsoft Makes the ADO.NET PowerPack Obsolete
January 17, 2005

My Compact Framework Database Article is Up
My Compact Framework Database Article is Up
January 10, 2005

Url: http://www.devsource.com/article2/0,1759,174964...

Rico's Walkthrough of Finding Memory Leaks in the CLR (or your code)
Rico's Walkthrough of Finding Memory Leaks in the CLR (or your code)
December 14, 2004

Url: http://blogs.msdn.com/ricom/archive/2004/12/10/...

COM Objects and IDisposable?
COM Objects and IDisposable?
December 13, 2004

I haven't dealt with a ton of COM interop up to this point in my .NET life.  I was surprised to find out that there is not a good story for deterministic deconstruction of COM objects...or maybe there is and I didn't see it.

10 Reasons to be Thankful about .NET
10 Reasons to be Thankful about .NET
December 1, 2004

Url: http://www.theserverside.net/cartoons/Top10_NET...

Extending Reporting Services
Extending Reporting Services
November 30, 2004

Virtual   New is Evil?  I am convinced...
Virtual New is Evil? I am convinced...
November 23, 2004

Url: http://www.dotnetconsult.co.uk/weblog/permalink...

ADO.NET Powertoys and GotDotNet Workspace
ADO.NET Powertoys and GotDotNet Workspace
October 25, 2004

Url: http://wildermuth.com/powertoys

Decoupling Interfaces and Number of Assemblies
Decoupling Interfaces and Number of Assemblies
August 2, 2004

I have been having a conversation about coupling of objects at the interface level.  While I am not a fan of coupling objects together, I would like to be able to shortcut some factory code to make the interface be more intuitive.  For example, here is code that decouples the interface:

Novell Shipping Mono Tools?
Novell Shipping Mono Tools?
June 30, 2004

Url: http://news.com.com/Novell+ships+cross-platform...

MetaBuilders ASP.NET Controls
MetaBuilders ASP.NET Controls
June 17, 2004

Url: http://www.metabuilders.com

Yukon and Whidbey Slip!
Yukon and Whidbey Slip!
March 10, 2004

Url: http://news.com.com/2100-1012_3-5172166.html?ta...

Getting My Hands on the 64 bit Framework
Getting My Hands on the 64 bit Framework
October 29, 2003

I got to play with an Itanium 2 Box at the PDC today. Instead of following their script, I did what I've wanted to do for months...creating a huge DataSet. They had an interesting setup. You used a Pentium 4 box to develop code and then Terminal Service'd into a sixteen-way Itanium 2 machine to run the code. The 64 bit JIT's the IL to 64 bit code from the same assembly that the 32 bit JIT did to create the 32 bit code.

First Day at the PDC...
First Day at the PDC...
October 26, 2003

Other than LAX being 'smoked' in, there is not much to report today. A number of MS employees seem to be stuck at SeaTac waiting for the smoke from the bush fires to clear out. On my way in last night, we flew over the fires. It was pretty impressive. We were in a holding pattern over the fires and could smell the wood smoke in the plane. After a few nervous passengers asked the staff, we were reassured that it was only from the fires below

PDC Bound...
PDC Bound...
October 23, 2003

Well, I am off to LA Saturday morning. In all the years I've been doing this stuff, I've *never* been to a PDC. Now I am feeling overwhelmed with what to dig into while I am there. I am lucky that I've had the opportunity to see Longhorn, Whidbey and Yukon before the PDC, but just haven't had the time to dig into Indigo and Avalon.

NDAzed and Confused...
NDAzed and Confused...
September 28, 2003

The PDC talk is heating up and it is clear to me that there is a huge number of 'wow' features that will be unveiled in LA. It seems like most of the other bloggers are talking about what I think is protected behind the multitude of NDA's I've signed. So to be safe I am keeping my mouth shut...tightly. What I can say is that what you'll see at the show about Whidbey, Yukon and Longhorn are phenomenal. Some of it is evolutionary, but much of it is revolutionary. I think you’ll be pleased... I am.

Observations at VSLive
Observations at VSLive
September 11, 2003

Url: http://www.ftponline.com/conferences/vslive/200...

App.config and C# Projects (Updated)
App.config and C# Projects (Updated)
August 23, 2003

Everytime I add a app.config file to a new C# App, it never does what I want. I want the app.config file to be deployed to the build directory so I can make changes to the app.config file and have it propogated. With the release of VS.NET 2003, us C# developers now have pre and post build steps. So I now have to remember to add the following to the post-build event:

Things About Typed DataSet Generation I Never Noticed...
Things About Typed DataSet Generation I Never Noticed...
August 14, 2003

I have been thinking a lot about how Typed DataSets are generated and was spelunking through the code again when it got me thinking. The Typed DataSet generator doesn't really generate the code based on the .xsd, but on the DataSet. It simply loads the .xsd into a DataSet then interrogates the DataSet directly for everything (tables, columns, relationships, constraints). So if the Typed DataSet Designer cannot handle something (like relationships *without* constraints, see below), but the DataSet schema allows it...simply create the DataSet and save the .xsd file to see what it produces! This gets around some fundamental problems with the designer. It does require you start looking and understanding .xsd, but it is a useful skill to have anyway...right?

Three Tier ASP.NET Apps
Three Tier ASP.NET Apps
August 12, 2003

I hear from a lot of readers that they are creating 3-tier ASP.NET apps and I always wonder if they know where the middle tier is.

How could I have missed it?
How could I have missed it?
July 30, 2003

I hope I am not the only one who missed the magic of CTRL-SHIFT-V. I have bungled about with copy-paste in the editor so many times...I accidently hit CTRL-C instead of CTRL-V and copy an empty line instead of pasting my code...Arg! Now I know to just hit CTRL-SHIFT-V and pick my lost copy from the clipboard ring.

VSIP Anyone?  Free VSIP Anyone?
VSIP Anyone? Free VSIP Anyone?
July 29, 2003

Url: http://msdn.microsoft.com/vstudio/partners/

Quake 2 in Managed Code?
Quake 2 in Managed Code?
July 21, 2003

Url: http://www.codeproject.com/managedcpp/Quake2.asp

Who cares if .NET is better than Java?
Who cares if .NET is better than Java?
January 14, 2003

In the last few weeks a number of comparison between Java and .NET have been floating around. As much as I am interested in these comparisons on an intellectual level, I really don't care on a practical level. Do most day-to-day developers really care? Sure, the number of jobs out there for any particular skill set move with the tides so most of us care. But on a purely technological comparison, the differences is minimal.

Announcing ONDotnet.com
Announcing ONDotnet.com
October 21, 2002

Url: http://ONDotnet.com

Why "Service.asmx?wsdl" Doesn't Work...
Why "Service.asmx?wsdl" Doesn't Work...
October 11, 2002

I just attended the second day of Chris Sells' and Tim Ewald's great Web Services DevCon East and had a great time. Yasser Shohoud gave a wonderful talk on "The Right Way to Build Web Services". He echoed something I have been thinking of for some time. Sure, I didn't want to learn how to write WSDL. At the same time I know that the WSDL that is generated by using the '?wsdl' syntax of ASP.NET's .asmx files does not let me design the interface first. I changed my mind and learned to write WSDL. WSDL really isn't too difficult to write. It is too bad that we cannot disable the ?wsdl syntax and just use a static WebService.WSDL URL to have our customer's get our WSDL files.

Web Services and DataSets: Why the Bad Rap?
Web Services and DataSets: Why the Bad Rap?
October 10, 2002

Why is everyone so down on using DataSets in .NET Web Services? Sure, I’ll admit that using DataSets directly as Web Service parameters are indeed a problem. But why throw the baby out with the bath water?

Serializing XmlDocuments in the .NET Framework
Serializing XmlDocuments in the .NET Framework
August 25, 2002

I was recently in a DevelopMentor course when I ran into a very interesting observation.  The XmlSerializer serializes any class that dervies from XmlNode (including XmlDocument, XmlElement, et al) as plain XML.  Previous to RTM of the .NET framework, these classes were serialized like any other class (all public properties and fields were serialized).  To our amazement (Dan Sullivan and mine), we realized that the XML classes serialized perfectly when run through the XmlSerializer class.

Is XML Just Structured Storage?
Is XML Just Structured Storage?
July 29, 2002

When the XML revolution happened, I was surprised how quickly developers jumped on to the coming tide.  I have to admit, the first time I saw XML, I believed it was nothing more than just structured storage. That is the magic of it, isn't it.  It is just structured storage, but a structured storage format that is universally understood. 

XmlDataDocument is Cool
XmlDataDocument is Cool
June 5, 2002

For those who do not know yet, the XML integration with the DataSet is very powerful. Most of the integration is about filling and getting XML from your DataSet. But the XmlDataDocument is really cool. Simply by assigning the DataSet to the XmlDataDocument, you can work with the DataSet data either relationally (through the DataSet) or hierarchically (through the XmlDocument). So, next time you need to transform the DataSet data or just run an XPath query, assign your DataSet to an XmlDataDocument and watch the magic begin...