Tag Archives: dotnetcore

EF core: entity cannot be tracked

We use EF core to store a bulk of data with an auto-number primary key. The auto-number is an Identity column in Sql Server. When inserting a large amount of records with related children we encounter this error: System.InvalidOperationException entity … Continue reading

Posted in Development, Tooling | Tagged , , , | Leave a comment

Visual Studio Code naming convention

I’ve been using the Visual Studio 2017 naming convention to generate code the way I like. Now I want to apply this behaviour to Visual Studio Code on my MacBook. Private fields should start with underscore: First install EditorConfig from … Continue reading

Posted in Development | Tagged , , | 1 Comment

EF codefirst migrations and Cloud Foundry

We’re using the hosted Cloud Foundry solution for development at http://run.pivotal.io. So everybody can hit the floor running I’ve created a template for using Entity Framework Codefirst migrations in a dotnet core web application hosted on Cloud Foundry. The key … Continue reading

Posted in Development | Tagged , , , | Leave a comment

Cloud Foundry Task with dotnet app

We’re investigating the CF run-task command from the cli. This is used to execute tasks that run to completion, like database migrations or print something to the console 😉 Hello console We’ve created a new console project. The main function … Continue reading

Posted in Development | Tagged , | Leave a comment

Add Sql Server as user provided service in Cloud Foundry

In this post you’ll add Sql Server from Azure to a dotnet core mvc app. We presume you’ve already created the Sql Server in Azure. If not follow my post azure sql server for centralised database. User Provided Service A … Continue reading

Posted in Development | Tagged , , , | Leave a comment

Add MySql to dotnet core app in Cloud Foundry

In this post you’ll add MySql from the marketplace to a dotnet core mvc app. Mysql was added to the marketplace in this post. Service We could use the cli to add MySql and then hook it up to the … Continue reading

Posted in Development | Tagged , , | Leave a comment

Offline buildpack for Cloud Foundry

This post is a combination of information available elsewhere (links are included) and can be used to get you’re own offline buildpack on Cloud Foundry. Prerequisites install go (https://ahmadawais.com/install-go-lang-on-macos-with-homebrew/) Dotnet-core buildpack Instructions on https://github.com/cloudfoundry/dotnet-core-buildpack/tree/v2.0.1 Warning! buildpack is 841MB. Now you … Continue reading

Posted in Development | Tagged , | Leave a comment