Free Code: Deferred calls to IDispose

I’ve been dealing with heavy use of Stream types recently. Not as in the fairly common usages of say, reading a text file or whatnot. We’re talking Streams that transform data from one format to the other transparently to the caller, that run across various nodes in a cluster (think a Stream of Streams), that…

0

Free Code: Windsor Castle Autofactory Facility

So I recently was working on a system that used extensive need of delayed factory support for dependencies on our components. Effectively if ClassDepending needed to use ClassDepended, the constructor parameter was instead Func<ClassDepended>. This solution was built on Windsor container. Having to remember to register all those custom factories in our bootstrap routines was becoming a huge…

0

Simple WCF netMsmq Example (or Step 1 to stop reinventing yet another MSMQ clone)

It’s pretty obvious that MSMQ is a bit of a dark art out there. People know it exists, everyone knows someone somewhere that knows a guy who once did something with it, and like practitioners of esoteric arts, the technology is looked upon with distrust. In fact to the point that I see team after…

6

Yes you can execute sprocs with EF Fluent API Code Only

OK let’s make this clear. You can totally call SQL Functions, SQL SPROCS, or any other raw SQL statement and use it in EF Code Only. What you don’t get is automatic or fluent API configuration statements that perform this mapping work for you and by default, no tracking occurs on the materialized objects (though…

1

Map private properties with EF Fluent API

So until we get EF 4.2 and the support for enumerations as first class citizens those of us needing support have resigned ourselves to the simple fact that we are forced to expose a property for the integer value for EF to use and wrap that value with a convenience property that casts it as…

3

Windsor Container Series

It’s no secret that I am a fan of Windsor Container. Here’s a really great series of Advanced Windsor Container Tricks posts that I am linking here for reference Registering Delegates  & A Delegate Factory Facility Auto registration How to resolve arrays How to register and use decorators The Startable Facility The EventWiring Facility How…

0

Silverlight, Faults, and HTTP Status Codes

So plenty has been written about the mismatch in between the Silverlight browser plug-in and WCF messaging with fault use cases over HTTP. For those of you that didn’t know about this then here’s your chance to catchup: According to the documentation, SOAP faults are not supported in the WCF client implementation for Silverlight (even…

0

Using reflection to determine if an event is static

So if you happen to have an EventInfo class and need to determine if the event is static or instance, it isn’t actually immeidately clear if this is supported. Most of the MemberInfo basic types expose a property named IsStatic that indicates if this member is static or not. If you’ve ever worked with the…

0

Interested in POCO Entity Framework 4?

Editorial note: EF 4.1 was released as part of the .Net 4 Platform Update 1 release. You should use the information at http://blogs.msdn.com/b/adonet/archive/2011/04/11/ef-4-1-released.aspx for training now. For those of you interested in POCO In EF4, here’s a list of links that you should read to grok: http://blogs.msdn.com/b/adonet/archive/2009/05/21/poco-in-the-entity-framework-part-1-the-experience.aspx http://blogs.msdn.com/b/adonet/archive/2009/05/28/poco-in-the-entity-framework-part-2-complex-types-deferred-loading-and-explicit-loading.aspx http://blogs.msdn.com/b/adonet/archive/2009/06/10/poco-in-the-entity-framework-part-3-change-tracking-with-poco.aspx http://blogs.msdn.com/b/adonet/archive/2009/06/16/using-repository-and-unit-of-work-patterns-with-entity-framework-4-0.aspx http://blogs.msdn.com/b/adonet/archive/2009/06/22/feature-ctp-walkthrough-code-only-for-the-entity-framework.aspx http://blogs.msdn.com/b/efdesign/archive/2009/08/03/code-only-enhancements.aspx http://blogs.msdn.com/b/efdesign/archive/2009/10/12/code-only-further-enhancements.aspx And if you are…

0

Modifying ASP.Net Providers at Runtime

How to add providers at runtime programmatically So if you are like me, you are a fan of not reinventing the wheel. This is especially true of components like Membership, Roles, Authentication, Personalization and whatnot. While I take some issue with the choice of API and can think of many improvements that should be made,…

2