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 hosted .NET web application
I needed a small application that manages attendance for a large people management / church management system known as RockRMS. We have this Rock system running in Azure hosted on a VM and using a SQL Database. There were some functionalities lacking in the Rock system and so I created this small extension application and deployed […]
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 […]
Working with DynamoDB SDK API and .Net
In this post I’m doing a deep dive of AWS DynamoDB database and using the available APIs with .Net Core. For more general information on DynamoDB, refer to this post: http://solidfish.com/overview-of-aws-dynamodb/ The code shown here is from another post where I created a complete serverless web application in AWS using DynamoDB. Below is a […]
Using Visual Studio with Webpack for Angular Development
Introduction With the release of Angular 2 and ASP.NET Core in 2016, the two technologies have become a common pair for .Net web developers. The .NET Core’s platform agnostic ability has made it more appealing even for the non .Net developers. Moreover, Microsoft has been pushing hard to reach this outside market and introduced Visual […]
Using Angular2, Webpack and Visual Studio 2015
Most articles out there about Angular2 with .Net use .NET Core and Visual Studio Code as the IDE (with node serving behind it). For the few of us procrastinators who haven’t moved on to the latest, its difficult to find examples and documentation on using Angular2+ with old .Net 4.5+. Full blog post about this […]
Feature Release Management using Pipelines
This covers best practices in managing feature releases in TFS / Visual Studio and using Azure. Release Pipelines and Management Build once and have it deploy to multiple environments. The concept is to de-couple the build from deploy. The deploy is a pipeline, from dev to int to stage to prod. In between these […]
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 […]
Windows App using Prism 6
Its been a while since I’ve last made a windows app. Last time I did it was using WinForms on .Net3. Recently I got a project to develop a native windows 10 app. This is not through the app store – but rather using WPF. I created this sample app to play with WPF, use […]
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 […]
Code Management using Branches
Managing Hot Fixes and Code Quality Branches and Code Reviews TFVC vs Git Branching by feature is nice, and Git supports branching very easily. But note that each branch requires integration (merge). So having more branches mean there are potentially more merges. Some issues when doing too much branches. One good scenario for branching 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” […]