.NET Core 2 Archives | DevSquared

DevSquared Blog

Tips for Improving Entity Framework Core Performance with Azure SQL Databases

I’ve worked with Azure SQL databases for years, mostly from some flavor of Microsoft’s Entity Framework. These days, all of our new apps are using Entity Framework Core. Here are two small things that I’ve noticed people tend to forget over the years that can improve your app’s Entity Framework/Azure SQL experience. 1. Enable Connection … Continued

Exploring the UnitConvert API in .Net Core

UnitConvert is an API that we created that makes it easy to convert any plain text measurement to another compatible measurement, get information about the measurement, or compare with another measurement. Why is this useful? Here are a few scenarios where UnitConvert could be used: Translate your app’s speech recognition data/spoken units into a standardized … Continued

Why You Should Use a Private VSTS Agent for Your CI Pipeline

We do a lot of ASP.NET Core projects that get deployed to Azure. Continuous integration and testing is important to us, so using Visual Studio Team Services (VSTS) made sense. For most of our projects, we have check-ins to certain branches of our git repositories automatically triggering publishes to Azure staging environments. We started off … Continued

Building your first Vue.js App with ASP.NET Core 2 and Vuetify

Vue.js (https://vuejs.org/) is a great front-end framework, especially for beginners. There are several single page application templates available from Microsoft through their “Microsoft.AspNetCore.SpaTemplates” package, including a template for Vue.js. This template works OK out of the box, but with a few small updates we can include some great material design components provided by Vuetify (https://vuetifyjs.com/) … Continued

Using ModelState for Validation with Vue.js in .Net Core 2

Controllers in .Net Core can keep track of the validation state of your models/view models through their ModelState property. While it’s very easy to do client-side validation in Vue js, server-side validation is a much stronger way to prevent data errors, and the built in ModelState capabilities provide this. Through a few steps and the … Continued

Creating a Filter for Custom Roles in .NET Core 2

Extending .Net Core 2 identity The role system built into newly created .Net Core 2 MVC apps when you select the “Individual User Accounts” option works great for most scenarios. However, there may be times when you need to pull roles in another fashion to meet your business need. Thankfully, it’s easy to hook up … Continued