Skip to main content

Posts

Starting with Docker and ASP.NET Core

I love the .NET world. But for me, it always felt strange that you can run your code only inside Windows ecosystem. But now, with .NET Core, you can develop and run .NET application on Linux. Now you can use all the benefits of the Linux platform. One of such benefits is the ability to use Docker natively. Now all major cloud services offer direct Docker containers deploy. It means you shouldn't worry about dependencies and software versions - everything is inside your container . That's why I decided to learn about Docker and share it with you here. In this tutorial, you will learn what are ASP.NET Core and Docker, and how to use them together. ASP.NET Core What is ASP.NET Core? Microsoft defines ASP.NET Core as: ASP.NET Core is a cross-platform, high-performance, open-source framework for building modern, cloud-based, Internet-connected applications. What about .NET Core?  NET  Core is a framework that supports ASP.NET. It is a cross-platform, open-sourc
Recent posts

Set execute permission with Git from Windows

At my work, I am working usually with Windows. But when we started our migration to Linux Docker containers and Kubernetes, I've found one annoying issue. Once you create a bash file on Windows, push it to Git and after this, you try to execute this file in most cases, you will get a “Permission Denied” error.

Pros and cons of different ways of storing Enum values in the database

Lately, I was experimenting with Dapper for the first time. During these experiments, I've found one interesting and unexpected behavior of Dapper for me. I've created a regular model with string and int fields, nothing special. But then I needed to add an enum field in the model. Nothing special here, right? Long story short, after editing my model and saving it to the database what did I found out? By default Dapper stores enums as integer values in the database (MySql in my case, can be different for other databases)! What? It was a surprise for me! (I was using ServiceStack OrmLite for years and this ORM by default set's enums to strings in database) Before I've always stored enum values as a string in my databases! After this story, I decided to analyze all pros and cons I can imagine of these two different ways of storing enums. Let's see if I will be able to find the best option here.

Hosting ASP.Net Core app on Heroku using Docker

Quick Summary Today I want to make a small and simple blog post about how to deploy ASP.Net Core application to Heroku using Docker.

ML.NET 1.0 RC Announced. What does it mean?

Microsoft has already announced a new the ML.NET 1.0 RC (Release Candidate) (version 1.0.0-preview). This is going to be the last version before the final ML.NET 1.0 in Q2 of 2019. It means soon we will be able to use machine learning with C# using a stable version of the library. It seems that in the 95% of the functionality in RC is going to be a part of the stable 1.0 version. Nevertheless, some of the packages will remain in the review even after release. These packages are: TensorFlow components Onnx components TimeSeries components Recommendadtions components The full list of the preview packages here . In this release (ML.NET 1.0 RC) Microsoft has initially concluded main API changes and for the next sprint, they are planning to focusing on documentation and samples improvements and also addressing major critical issues if needed. I want to believe that their goal is to avoid any new breaking changes moving forward. And it all good news for those, who wanted to