Upgrading ASP.NET Core to RTM

,
July 20, 2016 / No Comment

Here are the steps I followed to get an ASP.NET Core project upgraded from an RC1 with some RC2 beta bits up to RTM. 
This project is a full framework project without cross-platform capability. It uses Bower, NPM, and Gulp. I started the process by creating a scaffolded new project and based the upgrade on that. I also found it helpful to […]
Read more

Locking a Block of Code With an Integer

,
June 27, 2016 / No Comment

I was talking with a developer recently who was convinced that you could use a static integer variable to lock a block of code merely by casting it to an object, like this

First it must be noted that an integer cannot be used by itself in a lock statement because it is a value type. But when you […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#

JSON serializer that doesn’t serialize other properties if Deleted is true

,
May 13, 2016 / No Comment

I was recently working on a project using Azure Mobile Services (AMS) as the backend for our Android and iOS mobile apps. Using the built-in offline sync feature of AMS, you can delete records on the backend and when the mobile app synchronizes its data, the record will be deleted from the mobile device. While taking a look at some […]
Read more

AUTHOR: CATEGORY: .Net, Azure, Blog, C#, Cloud

Native animation effects in Xamarin.Forms

,
May 12, 2016 / No Comment

Xamarin.Forms (XF) provides a cross platform API for doing animations. This makes it very easy to do simple animations of XF elements. There is, however, a downside. The XF animations do not make use of native platform APIs, rather they animate properties on the XF elements. This can cause significant overhead, since each change to the property will trigger a […]
Read more

AUTHOR: CATEGORY: .Net, Blog, Xamarin

.NET Core Dependency Injection

,
May 4, 2016 / 2 Comments

In my last two articles, Logging with .NET Core (bit.ly/1Vv3Q39) and Configuration with .NET Core (bit.ly/1OoqmkJ), I demonstrated how .NET Core functionality can be leveraged from both an ASP.NET Core project (project.json) as well as the more common .NET 4.6 C# project (*.csproj).  In other words, taking advantage of the new framework is not limited to those who are writing […]
Read more

AUTHOR: CATEGORY: .Net, .NET Core, Blog

Oracle Data Provider for .NET

,
April 26, 2016 / No Comment

Oracle Data Provider for .NET (ODP.NET) uses Object-relational mapping (ORM) to allow developers to write object-oriented code against a Model instead of writing direct queries into the database. With Entity Framework gaining full support from Microsoft and Microsoft developers, it is critical that there exists an ORM that works well with Entity Framework when required to work with an Oracle […]
Read more

AUTHOR: CATEGORY: .Net, Blog

Essential .NET – Logging with .NET Core

,
April 7, 2016 / 2 Comments

In the February issue, I delved into the new configuration API included in the newly named .NET Core 1.0 platform (see bit.ly/1OoqmkJ). (I assume most readers have heard about the recently renamed .NET Core 1.0, which was formerly referred to as .NET Core 5 and part of the ASP.NET 5 platform [see bit.ly/1Ooq7WI].) In that article I used unit testing […]
Read more

AUTHOR: CATEGORY: .Net, .NET Core, Uncategorized

Xamarin Forms EnumBindablePicker

,
April 5, 2016 / 2 Comments

One of the controls missing from Xamarin Forms is a “BindablePicker” that allows you to dynamically bind an ItemsSource and SelectedItem from your view model. Fortunately, the Xamarin forums provide a solution to this problem found here:
https://forums.xamarin.com/discussion/30801/xamarin-forms-bindable-picker
The original implementation of this BindablePicker worked great as long as you had a list of strings as your ItemSource. But what […]
Read more

Making Sense of AssemblyVersion Numbers

,
March 15, 2016 / No Comment

The components of a Microsoft DLL or EXE version number are Major, Minor, Build and Revision. According to Microsoft, the components are used by convention as follows:
Major: Assemblies with the same name but different major versions are not interchangeable. A higher version number might indicate a major rewrite of a product where backward compatibility cannot be assumed.
Minor: If […]
Read more

AUTHOR: CATEGORY: .Net, Blog

MultiBinding in Xamarin.Forms

,
March 15, 2016 / 2 Comments

The current release of Xamarin.Forms does not contain an implementation for a MultiBinding object. For those of us who have a strong WPF background, this is a feature that would be very beneficial. With a little work, it is possible for us to implement our own MultiBinding class using the current Xamarin.Forms framework.
Creating a basic MultiBinding
The existing Binding […]
Read more

AUTHOR: CATEGORY: .Net, Blog