Review of .Net Core 3

Some key features in .Net Core 3 / C# v8 Nullable Reference Types Pattern Matching Improvements First class support for Indices and Ranges Default Interface Members Async Streams JSON Parsing improvements Windows Desktop / Winforms Support Improvements to build, pack and deploy Nullable Reference Types The Null Reference Exception: static void NullException(MyObject obj) { Console.WriteLine(obj.title); […]

Azure Overview and App Service

Some general notes about the Azure cloud platform and services. Regions – geographical area with one or many datacenters Feature Availability – not all features available in every region Geography – discrete market area with one or more regions Availability Zones – physically separate locations within Region providing redundancy for that region Availability Sets – […]

.Net Core Services

This is a review of some of the core internals of the .Net Core Framework. Sample code can be found here: https://github.com/johnlee/dotnetcoreservices   Background NET was first announced by Microsoft in 2000 and then evolved from there. The .NET Framework has been the primary .NET implementation produced by Microsoft during that nearly two decade period. […]

Building .Net Core apps in Docker with VSCode on Mac or Windows

We can develop applications inside Docker containers and completely decouple our host machine from any SDK or development environments. This means that when using frameworks such as .Net Core, we no longer need to have it installed or running on the host machine. Instead, we get the .Net Core SDK docker image and develop within […]

.Net Core and Docker

These are some more notes about using .Net Core with Docker containers in a microservice architecture. A Docker container is just a process. It has a much smaller footprint than a virtual machine. VM includes the application, libraries, binaries and a full operating system. On the other hand, containers include the application and all libraries/binaries […]

.Net Core CLI

Some reference notes on using the dotnet cli and .net core.   Project templates can be created using the dotnet cli. As of v2.4.1 (sdk) the following are the template types. Note this can be seen with the ‘new’ command. lee@macbook:projects$ dotnet new Usage: new [options] Options: -h, –help Displays help for this command. -l, […]

Serverless App using AWS API, DynamoDB, Lambda, S3 and Visual Studio .Net

This is a sample project using Visual Studio 2017 (.Net 4.5 + Core 2) and the following AWS services: API Gateway DynamoDB Lambda S3 CloudFormation This project will have an Angular web front end hosted on S3, which calls APIs in the API Gateway. Those APIs are defined as Lambda functions and interact with DynamoDB […]

Managing and Deploying SQL Database Code

SQL Server Data Tools (SSDT) Does database comparisons, deployments, automation In Visual Studio SQL Server Project Being in Visual Studio � can do smart refactoring. It propagates all the changes (like a rename) to all associated files. Schema Compare and Updates Changes made on the SQL server can be brought back into Visual Studio through […]

Working with Integration Tests

This is a sample project demonstrating integration tests that include the Data Access Layer (DAL). This is using .Net Entity Framework version 6 and Microsoft’s MSTEST. See other blog posts regarding integration testing and unit testing here: http://solidfish.com/unit-testing-vs-integration-testing/ http://solidfish.com/unit-testing-with-dependency-injection/   This example uses database migrations as part of the tests. It drops and recreates the […]

ASP.NET MVC, WEBAPI, SQL, Unit Test and EF on Azure

This is a sample project that contains the following: ASP.NET MVC (4.6) ASP.NET WEBAPI SQL (SQL SERVER 2014) ENTITY FRAMEWORK (5) UNIT TESTS All is deployed on Azure here: http://samplewidgets.azurewebsites.net/ This is a project I use as kind of a template for other projects that use similar technologies and frameworks. I’ve also used it to […]

Entity Framework 6

These are my notes while reviewing the latest release of Entity Framework EF6       Migrations = creates or updates database automatically as models in the application change. This lets developers focus on the application models and not worry about the database.   EF SaveChanges() This does the actual SQL command execution. It is […]

An overview of MVC 5 and Web API

Some general notes on MVC5 and WebAPI…   The MVC pattern is been in computer science since 1979, known then as the Thing-Model-View-Editor. The Model: A set of classes that describes the data you’re working with as well as the business rules for how the data can be changed and manipulated The View: Defines how […]

Advanced Topics in C#

Some person notes on Advanced Topics programming with C#.   Inheritance vs Composition Inheritance and composition isnt specific to C# but to applies to any Object Oriented Programming language. The Inheritance model allows for “IS-A” relationships. For example, we can have a parent Fruit class and a child Apple class. The child Apple class “IS-A” […]