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

Implementing a Custom ILogger with Exception Handling for .NET Core

,
March 4, 2016 / 2 Comments

This article corresponds with the MSDN article: Essential .NET – Logging with .NET Core. This github repo contains the code referenced in the article. Not in particular the unit test LogCritical_Exception_Success for an example of handling an exception using the custom logger.

The Custom Logger implementation is straightforward:

Here is the the extension method for adding a custom […]
Read more

AUTHOR: CATEGORY: .Net, .NET Core, C#

Essential .NET – Configuration in .NET Core (MSDN)

,
February 4, 2016 / No Comment

Note: Just prior to press time, Microsoft announced name changes to ASP.NET 5 and related stacks. ASP.NET 5 is now ASP.NET Core 1.0. Entity Framework (EF) 7 is now Entity Framework (EF) Core 1.0. The ASP.NET 5 and EF7 packages and namespaces will change, but otherwise the new nomenclature has no impact on the lessons of this article.
Those of […]
Read more

AUTHOR: CATEGORY: .Net, Blog, Headlines

Self-Hosted Integration Testing Of OData and WebApi

,
January 15, 2016 / No Comment

Full-stack testing of OData 4.0 and Web API 2.2 ASP.Net MVC controllers
Why Are Unit Tests of OData Web API Controllers Insufficient?
A common pattern for testing ASP.Net Web API 2 controller methods is to call them directly after mocking or setting up the Request and Configuration properties. When OData v4 is then added to this mix, more setup or […]
Read more

AUTHOR: CATEGORY: .Net, ASP.Net, Blog, C#

Essential .NET – C# Scripting (MSDN)

,
January 6, 2016 / No Comment

With the arrival of Visual Studio 2015 Update 1, henceforth Update 1, comes a new C# read-evaluate-print-loop (REPL), available as a new interactive window within Visual Studio 2015 or as a new command-line interface (CLI) called CSI. In addition to bringing the C# language to the command line, Update 1 also introduces a new C# scripting language, traditionally saved into […]
Read more

AUTHOR: CATEGORY: .Net, Blog, C#, Headlines