Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Gotcha: Entity Framework gets slow in long Iteration Loops

AddThis Social Bookmark Button
Thought I’d highlight a common problem I’ve run into a few times with a few of my customers using Entity Framework. I spent some time today with a customer debugging a very, very slowly process using Entity Framework operation. The customer was running a long order processing task involving an order with a thousands of order items plus a boat load of child items. This task is pretty massive, but it was taking 6+ hours to complete. Yikes. Lots of items for sure, but there’s no reason this should take hours or even more than a few minutes. Now some
people are very quick to blame EF for bad performance and while there may be something to that in some situations, I find that very frequently a few minor adjustments in code can fix serious performance issues. This was one of those cases. An Example of Large Order Processing The issue for this customer dealt with processing very large Sales Orders that involves looking up customers and order ids as part of the initial pre-processing operations.  We’re using business objects in this scenario but the business objects essentially host an Entity Framework dbContext and use it for the business object...(Read whole news on source site)

A Single Line Performance Error

AddThis Social Bookmark Button
Originally posted on: all make dumb mistakes which are not interesting to share. But sometimes people make interesting mistakes. Below is a simple helper class that makes combining several delegates in a logical and manner very easy.   static class Constraints { /// /// Logical and of a list of predicates. /// public static Predicate And(params Predicate[] ands)
{ // return a new delegate which checks if all delegates in the array did return // true for a given item return item => ands.All(x => x(item)); } } You can use it then like this: class Program { ...(Read whole news on source site)

Entity Framework Pitfalls: String Length Validation

AddThis Social Bookmark Button
If you want to validate the maximum number of characters that a string property can take, you might be lured into using MaxLengthAttribute. However, this won’t give you what you want: what this attribute does is, when a model is being generated, it provides the maximum length of the string field in the database, but does not perform any kind of pre-insert or pre-update validation. For that, you need to use StringLengthAttribute. This one is indeed a validation attribute, inheriting from ValidationAttribute, and will be called when EF is about to persist your
entity, or when ASP.NET MVC validates a model as a consequence of a post. You can specify both the minimum (MinimumLength) as well as the maximum length (MaximumLength)....(Read whole news on source site)

Lenovo Yoga 3 Pro Review (and Surface Pro 3 Comparison)

AddThis Social Bookmark Button
My interest in the Yoga line began several years ago when I was looking for a lightweight, portable development machine to use as my primary device and to test Windows 8 apps on. I wrote about the IdeaPad Yoga 13 here. I continued to use that device as my main one until I purchased a HP TouchSmart 15t-J000 Quad Edition so that I could have 16 gigabytes of memory to run virtual machines. Even after that purchase I still used the Yoga as my portable “go to device”. For work I was issued a Surface Pro 3. The Pro
3 serves as my main development machine and what I carry with me, so I have... [[ This is a content summary only. Visit my website for full links, other content, and more! ]]
...(Read whole news on source site)

My Favorite Books of 2014

AddThis Social Bookmark Button
In 2014 I read (according to GoodReads) 47 Kindle books and (according to Audible) 101 audible books. This year I read zero books on paper. Here is my short list of the very best: Far from the Tree Ulysses What If? … Continue reading → For the complete article and hyperlinks, please visit my blog at

Solved: Shutting down VMWare Workstation Virtual Machines on Windows 10 Tech Preview

AddThis Social Bookmark Button
Here’s a quick tip/solution on how to shut down your VMWare Workstation 10 and 11 Virtual Machines if you’re using the Windows 10 Tech Preview (basically all builds, but only tested on 9879). Currently if you’re using Windows 10 Tech Preview as your host operating system and if you’re trying to shut down a VMWare Workstation Virtual Machine you will crash Windows 10, and potentially corrupt your machine and virtual machines. You’ll see a Blue Screen of Death with a DPC_WATCHDOG_VIOLATION exception. I take no credit for this solution, all goes to piccolonicky, who found out the
way to properly shut down the VM’s.  But I share it here so that those who reads this blog (mum?) and suffers from the same issue more easily can find the answer. The whole idea is to fake a system shutdown of your host OS. This can be done by using the Logo Testing Tools for Windows, which contains a small utility called Restart Manager (RMTool.exe). This tool can send a system shutdown signal to a process (identified using the PID), and for a VMWare (vmware-vmx.exe) process it will shut your VM down, properly. This is how...(Read whole news on source site)

Speeding up your AngularJS applications

AddThis Social Bookmark Button
In general AngularJS applications are quite fast, specially when compared to more traditional browser based applications that constantly post back to the server. However there are always a few things that will help performance and make an application even faster.   Disabling Debug Data Normally AngularJS adds several things like CSS classes and some scope related properties to DOM elements. This is not really needed to run the application and is really only done to help development tools like Protractor and Batarang. When the application is in production that is not really needed and you can save some overhead by

Structuring Angular with Dan Wahlin

AddThis Social Bookmark Button
The Adventures in Angular team gathered to discuss Structuring code in an Angular app on this week’s episode of Adventures in Angular. Join us and special guest Dan Wahlin for this episode as we dive into solid patterns and strategies for working with Angular. You can also read the transcripts on our site. Adventures in Angular Adventures in Angular web page follow the show twitter listen to us on iTunes Every Thursday morning you can join me and our All-Star panel of co-hosts Joe Eames, Aaron Frost, Charles Max Wood, Lukas Ruebbelke, Brian Ford, Misko Hevery for the latest episode