Khalid Abuhakmeh

Charming Your Entity Framework Use

Making Sure You Don't Get Bitten

As a user, If I've learned anything about Entity Framework (EF), is that this venom spitting BEAST that needs to be respected. Utilizing it incorrectly can lead to a gaggle of wrong results, expensive executions, and crashes. On the other hand, utilizing EF correctly can yield wonderful results. This post will show the "best" . . .

Read More

June 17, 2015

What's The Deal With Nullables and Lambdas?

Fixing a bug within RimDev.Filter

At Ritter Insurance Marketing, we developed a nice simple library around filtering enumerables called RimDev.Filter. It works great for our APIs.

On Friday, we ran into an interesting case with nullables. The following code would throw an exception.

private class Person
 public decimal? Rating { get; set; }
} . . .

Read More

June 14, 2015

ASP.NET Web API Easier ModelBinder Registration

In our current API work, we use a few custom types. We also let our clients send in comma delimited arrays of primitive types. To support our choices, we need to utilize WebAPI's IModelBinder interface. Our previous registration code looked like this.

var provider = new SimpleModelBinderProvider(
typeof(string[]), new  . . .

Read More

June 10, 2015 Migration Suggestion

A friendly response to " server status"

If you are user, you may have recently noticed stability being an issue. NuGet is crucial to .NET development and we collectively lose our minds when it isn't available. In a recent post, the NuGet team shed some light on the issues:

For the last few weeks we have experienced a few hours of downtime a few times a . . .

Read More

June 09, 2015

Basic ASP.NET MVC Application Flow

Follow The Yellow Brick Road

I've been using ASP.NET MVC since its early beta, and it has taken me years to perfect my application flow. If you are new to building ASP.NET MVC applications, or any MVC based web applications then this post is designed just for you. Hopefully, I can jump start your understanding and make your development experience smooth.

The . . .

Read More

June 07, 2015

Using SecureString in C# For Sensitive Information

It has been a week long adventure with the Security Assertion Markup Language, better known as SAML. Part of the SAML specification asks that any producer of a SAML response needs to sign it with a X509 certificate. This insures the authenticity of the response and allows the response to be verified at its ultimate destination. Most signing . . .

Read More

May 30, 2015

Using JsonConverters To Get the JSON Output You Want From WebAPI

JSON.NET Magic Goodness

In a previous post, I mentioned our filtering library aptly titled RimDev.Filter. It allows developers to filter any IEnumerable collection using an object comprised of sets and ranges. It is quite magical while being easy to understand. At the same time, we have adopted the practice of echoing the request back to the caller in our responses, . . .

Read More

May 22, 2015


All Categories: c#(2) elasticsearch(2) oss(1) home