To partition your asp.net core project into several csprojs is easy or maybe you want to make use of one or more common functionality between multiple apps. ASP.Net Core came with an abstraction over the resource of an app, it’s called application parts. Using an appliction part, we can share controllers,views, tag helpers etc intoContinue reading “ASP .NET Core MVC, partitioned controllers and views into several csprojs”
Tag Archives: asp.net core
asp .net core logging with Serilog
Easier logging in asp.net core with Serilog, is convenient and maintenance free when storing logs into file.
[CRUD] ASP .NET CORE MVC menggunakan Dapper
CRUD di asp .net core mvc menggunakan Dapper untuk mysql dan sql server
asp .net core Jwt Security Token
Issuer and SecurityKey To generate Jwt Security Token in asp.net core, we have to declare variables that are required for the token to be generated based on. Those variables are Issuer and SigningKey, we can put these variables in appsettings.json so we can read it later. This file contains bidirectional Unicode text that may beContinue reading “asp .net core Jwt Security Token”
How to draw a marker on OpenStreetMap
To Use OpenStreetMap and draw marker we can use a javascript library, there’s a lot out there but for this example well use leafletjs.com. It’s open source, mobile friendly and lightweight and has a complete features most developers need. Leafletjs Now head over to the website and follow the quick start tutorial, that should beContinue reading “How to draw a marker on OpenStreetMap”
Menggunakan SignalR di ASP .NET Core
SignalR adalah library untuk ASP .Net Core
Angular 2 application with asp.net core API – Part 2
The angular template from dotnet cli is using the angular v4.4.6 LTS version. So we cannot use the latest angular v.5 APIs. After creating the angular components in earlier post now we need to write each component, if you use VSCode or Visual Studio this will be easy because the editor will provide intellisense forContinue reading “Angular 2 application with asp.net core API – Part 2”
Angular 2 application with asp.net core API
To develop web application with Angular 2 and ASP .NET Core API we can use a builtin template that’s provide from the dotnet CLI (command line interface) by typing dotnet new angular but before you do that you need to make a new folder where you’ll put all your project files. Don’t forget to runContinue reading “Angular 2 application with asp.net core API”
asp.net core MVC login menggunakan custom database. Part-3
Melengkapi asp.net Core MVC tutorial series: part-1, part-2 dan tulisan ini sebagai part-3. EntityFrameworkCore Untuk mengakses database, asp.net core secara default menggunakan EntityFrameworkCore dan Sql Server. EntityFrameworkCore adalah data access technology, ini adalah versi ringan dan cross platform dari EntityFramework. Ada dua cara untuk menggunakan entityframework: Code first Database first Tutorial ini menggunakan code first,Continue reading “asp.net core MVC login menggunakan custom database. Part-3”
asp.net core MVC login menggunakan custom database. Part-2
HttpPost, HttpGet dan Authorize attributes. Melanjutkan artikel part-1. Untuk meng-handle autentikasi dan input dari login form yang dikirim browser dengan metod POST, harus menggunakan HttpPost attribute pada method/action yang ada di SecurityController. Untuk itu tambahkan method baru yaitu Login dengan parameter type LoginViewModel. Saya akan menjelaskan gambar diatas, attribute yang dipakai adalah [HttpPost], [AllowAnonymous] danContinue reading “asp.net core MVC login menggunakan custom database. Part-2”