It is extremely important that the programmer knows the difference between IEnumerable and IQueryable. When used in the Service layer, which communicates with the Data layer, the performance difference is extreme. IEnumerable causes a query to bring over all of the query’s table rows and then filter them (your WHERE clause) on the web server by iterating over every row and applying the “WHERE”. That’s work not intended for a web server and can mean the difference between a quick…
Read More Read More
When exposing .Net DateTime members to service consumers the .Net format is not always appropriate because the consumer may not be on the .Net platform. Therefore it’s best to use the ISO 8601 standard. Serialization is performed in .Net by using the OnSerializing attribute, and deserialization by using the OnDeserialized attribute. I created a Visual Studio snippet that writes the code that enables you to serialize/deserialize your DateTime member. Once added to your Snippets library utilize it by typing “jsd”…
Read More Read More
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