Browsed by
Tag: C#

A Stored Procedure Helper in .Net C#

A Stored Procedure Helper in .Net C#

I wrote this helper to make calling SQL stored procedures easier and less error prone. The idea here is to encapsulate the parameters of the stored procedure in an interface method that is implemented for each stored procedure. The values of the input parameters are encapsulated in an object. It makes use of Microsoft’s (now defunct) Enterprise Library DAAB (https://learn.microsoft.com/en-us/archive/msdn-magazine/2005/august/the-enterprise-library-data-access-application-block-part-2). Here’s the interface definition: Here’s the definition of the Login method’s parameters: Here’s the implementation of the Login method. It…

Read More Read More

It’s Friday and there’s 17 new JS frameworks out there

It’s Friday and there’s 17 new JS frameworks out there

If you’re like me you’re tired of hearing that there’s a new JavaScript framework for client-side web development that’s better than everything that ever came before it. It seems that once you have decided on a framework and think to yourself “Ok, it has some things I don’t like but I’m going with Angular”, or “React”, or “ZenPoopula”, or whatever, a newer framework is announced that looks promising. You bite your lip and vow not to look at it; you’ve…

Read More Read More