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


Entity Framework, Enums, and TINYINT

AddThis Social Bookmark Button
Entity Framework supports Enum properties on your model, but there’s one little gotcha that’s bitten me on more than one occasion now.  In your database, you may be tempted to save space by configuring the backing column to use an integer value that takes up less space than a normal int, such as a TINYINT (byte) or SMALLINT (short).  If you do though, you may get an error like the following: System.InvalidOperationException : The 'State' property on 'Issue' could not be set to a 'System.Byte' value. You must set this property to a non-null value of
type 'IssueState'. It sounds like EF is trying to assign the raw Byte value to the property rather than converting it to an Enum member, and indeed that’s what it’s doing.  Fortunately, the fix is easy: just change the base type of your enum!  By default, enums derive from System.Int32, but you can change that: public enum IssueState : byte { New = 0, InProgress = 1, ReadyForQA = 2, Deferred = 10, Closed = 20 } Now EF will hydrate your entity with...(Read whole news on source site)

On Occam’s Razor and Refactoring

AddThis Social Bookmark Button
Continuing on with my ramblings from last time: refactoring is a powerful tool that can help you transition your application (solution) from the complex end of the spectrum towards the simpler end. Let’s consider our simple problem again: “Given an integer X, find the next integer larger than X.”   And our overly-complex solution: f(x) = (x^2/x) + 1.  Thanks to a little thing called “math,” we can reduce this solution back to its simplest form, our so-called perfect solution, f(x) = x + 1.  I believe this same process holds true in software. 
We can simplify a complex solution we’ve created to arrive at a simpler, more-maintainable one.  One of the best tools we have for making this transition is refactoring.  As we refactor code, we’d like to move up this triangle.  If refactoring doesn’t move us in that direction, then we should consider whether the refactoring is actually beneficial. One thing to keep in mind is that there isn’t a way to simplify every solution.  Sometimes there is no path leading further up the triangle from where you’re at.  If that’s true, it can mean only...(Read whole news on source site)

New Article Published on How to Build a Task App using Swift

AddThis Social Bookmark Button
I have a new in-depth article published online today called, “Creating a Task Application for iOS using Swift”. See below for more information and a link to the online article. Article Introduction In this tutorial, I’ll walk you through building a tasks application for iOS using Swift. This app will allow you to quickly enter and delete tasks like going to the grocery store, etc. It will also lay the foundation needed in order to build native apps with Swift in the future. The Full Article The full article is hosted
on the TDN website and you can access it by clicking here. Don’t forget to rate it and leave comments if you have any problems.
...(Read whole news on source site)

Announcing PostSharp 4.1 Preview 4: Xamarin Support, and More

AddThis Social Bookmark Button
Today we’re excited to announce the release of PostSharp 4.1 Preview 4, available for download on our website and as pre-release packages on our NuGet feeds. We silently released two other previews since our last announcement. PostSharp 4.1 is all about supported new platforms and it is now feature-complete. Let’s see what’s new in the box:Support for XamarinWindows Phone and Windows Visual Studio 2015Conservative NuGet VersioningLocalizable Code ContractsPostSharp Explorer ImprovementsXamarinIt made the top of our UserVoice wish list for a long time: Xamarin is now supported as a first-class member of the .NET family. All features of PostSharp,
including thread safety patterns, INotifyPropertyChanged and undo/redo, are now available for Xamarin through portable class libraries (PCL).How to use PostSharp with a Xamarin project? Just as it works with other projects. Use the smart tag or the light bulb to add a PostSharp aspect, or install the PostSharp NuGet package. It’s that simple.More about Xamarin integration in a later post.Windows Phone and Windows StoreYou could already use create your own PostSharp aspects or use the built-in INotifyPropertyChanged and undo/redo aspects with Windows Phone and WinRT. With PostSharp 4.1, you can now use PostSharp Threading Pattern Library to create truly cross-platform...(Read whole news on source site)

4 Ways To Declare Your Angular Stuff

AddThis Social Bookmark Button
I’ve been writing AngularJS websites for a couple of years now and have worked in several different shops with their own styles and on my own projects, where my style has changed slowly as I have read other people’s code and picked up things I liked. One of the things that I have seen is ...

Visual Studio 2013 Update 5 CTP 2 Released

AddThis Social Bookmark Button
Today we released Visual Studio 2013 Update 5 CTP 2, adding support for graphics debugging of Unity-based applications on Windows Phone, and making fixes in the IDE, Team Foundation Server, and Git support. The release notes have the complete list of features and fixes. As always, please give us your feedback, suggestions, thoughts, and ideas on our UserVoice site, through the in-product Send-a-Smile and Send-a-Frown UI, or file a bug through the Visual Studio Connect site. Thanks! John John Montgomery, Director of Program Management, Visual Studio Platform John has been at Microsoft for
15 years, working in developer technologies the whole time. Most recently before working on the Visual Studio core development environment, he was working on the tools for Windows 8 development. Twitter: @johnmont
...(Read whole news on source site)

Windows 10 January Tech Preview

AddThis Social Bookmark Button
​I had some fun this morning downloading and playing with the new Tech Preview of Windows 10, which was unveiled last week. Here are a few screenshots to walk you through some of the changes in the interface. All in all, I thought they were fairly minor changes from Windows 8, most of them subtle improvements. (Although I'm going to have a hard time getting used to the new funky folder icons!)The first thing to note is that the "Start Menu" from Windows 8, which was more like an entire browsing experience, has returned to its previous and beloved
position. I personally never had an issue with the Live Tiles and wasn't too upset to see the Start Menu go, but this is at least a nice compromise between the two; it's like having the Windows 8 Start Menu embedded in the Windows 7 and previous start location. The Live Tiles sit side-by-side with the traditional shortcut list.  You aren't really going to see the word "Favorites" anymore it seems, but you'll see "Places" and "Most Used" by default. If you want to see all your links, click on the All Apps link....(Read whole news on source site)