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

Powershell Automation and Remoting (a c# love story)

OK all of you readers out there should know and love Powershell by now and you are using it constantly, right? If not get on with it! One of the most exciting things that came out of version 2 was the ability to perform remoting. Basically the ability to connect a session to a remote…

5

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

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,…

3

SQL Tip of the Day

HAd this passed to me from the SQL Tips DL here at the ‘soft and decided to repost it here to 1. remember about it and 2. share the tidbit INSERT MULTIPLE RECORDS WITH TABLE VALUE CONSTRUCTOR Author: Saleem Hakani (Microsoft Corporation)   Wouldn’t it be nice to have the ability to insert multiple rows…

2

DataServices, IErrorHandlers, Exceptions and the Gulf between them.

OK I am going to let you in on a dirty little secret about Astoria based services. This secret is probably not even known to you. Ready to hear it? Really? Well here it is:  You’d better never have anything go wrong as you’ll never know it. It devours exceptions and is hungry for more!…

2

Estimating the size a cube

where the set of D is dimensions and the set of M is measures. Let F(x) calculate the number of members and G(x) the size of the member.   Debate.  edit: I should have noted this is the approximation of the size. Depending on storage system there’s obviously overhead to this.

1

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

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…


Making exception messages meaningful

Now that’s a great exception message. I think we all can take a clue from the Castle team when it comes to making exceptions meaningful. Instead of next time effectively saying “something went wrong” with our exceptions, really spell out exactly why it went bad and if possible, how to correct it.   Big ups to…