Using the in-memory database of entity framework is super easy. Create an asp.net core and reference the following NuGet package if it's not referenced( it's been referenced in asp.net core 2 ...
Tuesday, 18 September 2018
In asp.net core application, Http requests are handled and processed by Middleware and every Http response would be created when the request has been passed to the middleware suite. For example, MvcMi...
Monday, 17 September 2018
There are different kinds of authentication. One of the most used ones is basic authentication that doesn’t expire like a bearer token and you need to send a username and password per each reque...
Friday, 07 September 2018
TagHelpers in ASP.NET Core are used to generate HTML or other markups for a web page. They provide a way to create custom HTML elements, with their own attributes and behavior, that can be used in Raz...
Monday, 20 August 2018
If you have used EF core, you have seen that there is no HasPrecision method to use and all of the decimal data types will be map as decimal(18,2) in SQL server by default. We used to map de...
Saturday, 18 August 2018
I was recently looking for a verification system and came across with Sinch. It's been satisfactory until now. After installing the library by nuget I created a wrapper for SMS, hope it be useful!...
Tuesday, 14 August 2018
In my earlier related post to this subject, I wrote that there is config in asp.net core to enable the static file access but that's not Ok for every sort of file, for example, you can't acces...
Friday, 03 August 2018
In asp.net core, the wwwroot folder treated as a web root folder. Static files can be stored in any folder under the web root and accessed with a relative path to that root. By default...
Saturday, 28 July 2018
I've used a custom wrapper for calling asp.net web API services in some projects. I just wanted to share it over here. It's been tested for hundreds of times!
&n...
Monday, 16 July 2018
By using IConfiguration, you can access appsetting.json content in asp.net core. Using it in Startup is straightforward:
public class Startup
{
&nb...
Saturday, 16 June 2018
As you know, WCF is Windows Communication Service and doesn't match the targets of .Net Core which is cross-platform. It was a just a question to know how can I handle the WCF services in .Net cor...
Saturday, 26 May 2018
There a capability in asp.net core which provides protecting the important and sensitive data. For example, if you don't want users to see and know about the database Identity numbers in Url you c...
Friday, 18 May 2018
HMAC stands for "Keyed-Hash Message Authentication Code." It is a cryptographic algorithm that is used to verify the authenticity and integrity of a message or data.
In HMAC, a secret key...
Saturday, 12 May 2018
I've always loved and used Glimpse at least for my basic performance and load test in my asp.net MVC projects. It's really straightforward and easy to use web debugging and diagnostics tool. G...
Thursday, 03 May 2018
RabitMQ is one of the most popular queue messages in the development world. In the basic form, for producing or so-called sending a message or an object into the queue you can use BasicPublish of the ...
Thursday, 12 April 2018
TPL (Task Parallel Library) is a feature in C# that provides a higher-level programming model for writing concurrent and parallel code. It simplifies the process of creating, scheduling, and managing ...
Monday, 12 March 2018
In Asp.net core samples, you always see the AddDbContext method In services to register Entity framework DbContext. I mean something like below:
public class Startup
{
p...
Tuesday, 12 December 2017
There are lots of plugins for CKEditor and one of the most used plugin for the developers is SyntaxHighlighter. In order to get and install this nice one with a sexy them like the following pict...
Monday, 04 December 2017