I want to add new cool features for AdminLTE with ASP.NET Core. The source code of this template is on GitHub #aspnetcore #adminlte #mvc #gravatar #breadcrumbs #navigation
Category: .NET Core
.NET Core is a cross-platform, open-source, general-purpose development platform maintained by Microsoft. It can be used to build different types of applications, such as web, mobile, desktop, cloud, IoT, machine learning, microservices, and games.
Integrating AdminLTE with ASP.NET Core
I explain how integrating AdminLTE with ASP.NET Core 3.1 MVC or really any other Bootstrap based UI Frameworks completely from scratch
Protect static files with ASP.NET Core
I explain how to Protect static files with ASP.NET Core Razor Pages and IdentityServer 4. Working with almost every extensions
Azure DevOps releases AppServices
In this post, I’m going to explain how to create a pipeline and a release in Azure DevOps that releases into AppServices. This is quite important step to go forward a digital transformation in your company to improve and optimize the developer’s process. In the pipeline Azure DevOps builds the solution (projects and tests) and create an artifact. Then, with the release, it publishes the artifact into to a AppService in Azure. Now I show step by step how to create both. Pipeline First, you have to create a New…
Implement security workflow with Identity Server
The goal of this post is to implement security workflow with Identity Server 4 and C# among projects and services. With a bunch of examples, I’m going to show, practically, how to do it.
Connect web application to PowerBI
How to connect a web application to PowerBI to give users a unique experience across a website using the PowerBI APIs
Test our code with json
Test Driven Development (TDD) helps you to validate your code but something you need to check some result from a json file. Here my solution
Database Connection Resiliency in Entity Framework Core: update
In this post I’m talking about Database Connection Resiliency in Entity Framework Core, an update to my previous post about transaction operations
Database Connection Resiliency in Entity Framework Core
How to implement database connection resiliency using an inbuilt or custom execution strategy using Entity Framework Core
Transactions with Entity Framework Core
In the last couple of weeks, I was talking about Entity Framework Core for creating a model or call stored procedures. But how to use transactions?
Pack .NET program to a single .exe file
PostSharp.Community.Packer is a free and open-source tool that you can use to pack your .NET Framework application into a single .exe file for distribution.
Entity Framework Core and calling a stored procedure
With Entity Framework Core you are able creating a model from the database and also calling a stored procedure.
Creating a Model for an Existing Database
Creating entity & context model automatically in C# for an existing database is called Database-First approach with Entity Framework Core
Getting organization list from Xero in C#
Connect your C# application with Xero OAuth 2.0 is not really simple. Here how getting the list of organization from Xero step by step
Getting invoice list from Xero in C#
In this new post I explain the procedure for getting an invoice list from Xero in your C# applications with few lines of code.
Using an in-memory repository. Keys will not be persisted to storage. – ASP.NET Core under IIS
One of the main benefits of building a new .NET project using .NET Core is cross platform deployment, however, IIS will still be a common home for ASP.NET Core web applications.
Accessing the OIDC tokens in ASP.NET Core 2.0
In ASP.NET Core 1.1 So, for example, in ASP.NET Core 1.x, if you wanted to access the tokens (id_token, access_token and refresh_token) from your application, you could set the SaveTokens property when registering the OIDC middleware: 1 2 3 4 5 6 7 8 // Inside your Configure method app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions(“Auth0”) { // Set all your OIDC options… // and then set SaveTokens to save tokens to the AuthenticationProperties SaveTokens = true }); You would then subsequently be able to retrieve those tokens by calling GetAuthenticateInfoAsync inside your controllers, and…
Adding an external Microsoft login to IdentityServer4
This article shows how to implement a Microsoft Account as an external provider in an IdentityServer4 project using ASP.NET Core Identity with a SQLite database. Setting up the App Platform for the Microsoft Account To setup the app, login using your Microsoft account and open the My Applications link https://apps.dev.microsoft.com/?mkt=en-gb#/appList Click the Add an app button. Give the application a name and add your email. This app is called microsoft_id4_enrico. After you clicked the create button, you need to generate a new password. Save this somewhere for the application configuration.…
Gravatar Tag Helper for .NET Core 2.1
A tag helper is any class that implements the ITagHelper interface. However, when you create a tag helper, you generally derive from TagHelper, doing so gives you access to the Process method. In your ASP.NET Core project, create a folder to hold the Tag Helpers called TagHelpers. The TagHelpers folder is not required, but it’s a reasonable convention. Now let’s get started writing some simple tag helpers. Tag helpers use a naming convention that targets elements of the root class name (minus the TagHelper portion of the class name). In…
Implementing the Inversion of Control Pattern in C#
Implement the inversion of control pattern is linked with the Dependency Injection Principle states. Here we analyse a simple implementation