RadenkoZec blog

Innovator, coder, geek, speaker, blogger, founder, writer, traveler.

Latest articles

.NET Core SignalR Automatic Reconnects

One of the major differences between old and new .NET Core SignalR is that automatic reconnects are not supported. This means that you need explicitly open a new connection if you lost connection to the server. I managed to write my own implementation that do automatic reconnects on this new version of .NET Core 2 SignalR that works for me. ...

Enable Unobtrusive JQuery Validation on Hidden Input Fields in ASP.NET MVC

After release of JQuery Validation Plugin 1.9 hidden elements on form are ignored by default from validation. The problem is that you sometimes need a validation on these hidden fields. However there is a nice workaround. Make sure to put $.validator.setDefaults({ ignore: '' }); not inside $(document).ready This will force client side validation to...

How to enable Unobtrusive Client Validation using JQuery in ASP.NET 5

In previous versions of ASP.NET MVC we have enable unobtrusive client side validation using JQuery in simple way by adding two keys in AppSettings of your config file: <configuration> <appSettings> <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" /> </appSettings> </configuration>   In...

Getting user-friendly routes with Aurelia in ASP.NET 5

If you want to use Aurelia framework inside ASP.NET 5 application you have a great tutorial from Scott Allen that will help you to jump start. When you finish configuring Aurelia app files to reside in wwwroot folder of your ASP.NET 5 application you can run Aurelia app easily by typing for example http://localhost:5000/index.html The problem is if...

LocalDB for Database Integration Testing in ASP.NET 5 project and XUnit.net

If you need to use LocalDb for integration testing your database with EntityFramework or some other ORM this article can help. First, you will need to create .NET core class library project to hold your integration tests: After this you will need to set-up XUnit.net. Check my previous blog post to do that. After this create a folder named Data in...

Unit / Integration testing in ASP.NET 5 and Visual Studio 2015 using XUnit.Net

Currently in Visual Studio 2015 CTP 6 MSTests are not supported to test ASP.NET vNext projects. If you create MSTest project you are unable to add a reference to the ASP.NET vNext project. Microsoft will enable support for MSTests for ASP.NET vNext in the next release of Visual Studio. Until then you can only write unit and integration tests using XUnit. First,...

Using classic ADO.NET in ASP.NET 5

For some projects where performance makes a difference we usually use classic ADO.NET approach instead of EntityFramework or some other modern way to communicate with the database. In this post I will try to explain how to fix some common issues with using ADO.NET in ASP.NET vNext. If you have created ASP.NET 5 or ASP.NET vNext Class Library project...

Read Config file in ASP.NET 5

ASP.NET vNext has a new configuration system. With the new version of ASP.NET more than one file type is supported. Currently, there are 3 different file types that are supported: Json, Xml and Ini. For example, we can define connection string in config.json file: { "Data": { "DefaultConnection": { "ConnectionString": "Server=(localdb)\\mssqllocaldb;Database=DbName;Trusted_Connection=True;MultipleActiveResultSets=true" ...

ASP.NET Identity 2.1 implementation for MySQL

In this blog post I will try to cover how to use a custom ASP.NET identity provider for MySQL I have created. Default ASP.NET Identity provider uses Entity Framework and SQL Server to store information’s about users. If you are trying to implement ASP.NET Identity 2.1 for MySQL database, then follow this guide. This implementation uses Oracle fully-managed...

Don’t read Non-Fiction, never!

I just read few non-fiction books. I wanted to share my experience with you. After reading few non-fiction books in short period of time I have realized that only a fraction of the information in these books is important. If we apply the Pareto principle to this: 20% of Non-Fiction book produce 80% value of the book. or Only 20% content inside Non-Fiction...

Discover, share and read the best on the web

Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters! Get unfiltered news feeds or filter them to your liking.

Get Inoreader
Inoreader - Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters!