Problem : I’m looking for new ORM for a important project, im used to nHibernate with ActiveRecord and I already […]
Category: .Net Case
How to make streams from BLOBs available in plain old C# objects when using SqlDataReader?
Problem : This is the scenario: We store files, e.g. relatively large documents (10-300MB), in blobs in our MSSQL database. […]
Rearrange a list based on given order in c#
Problem : I have a list as follows: {CT, MA, VA, NY} I submit this list to a function and […]
how to catch exception of MVC view?
Problem : In controller, try…catch can catch exception. How to catch exception in view? for example, a view may have […]
Deploying PDB Files in Release
Problem : I have my CI server setup to build and deploy all of my environments including my production environment. […]
Entity Framework 4 Stored Procedure Call Timing Out
Problem : I have a stored procedure imported into EF4, and when I call it with certain parameters after 30 […]
Shortest way of checking if Double is “NaN”
Problem : When calling Double.IsNaN() with Double.PositiveInfinity as argument, the result is false. This is against my intuition since infinity […]
Determine image overall lightness
Problem : I need to overlay some texts on an image; this text should be lighter or darker based on […]
A checklist for fixing .NET applications to SQL Server timeout problems and improve execution time
Problem : A checklist for improving execution time between .NET code and SQL Server. Anything from the basic to weird […]
Can you dispose of multiple objects within a Using block?
Problem : How to take care of multiple objects getting disposed off in a Using statement? Sample code using(MyClass obj […]