Blog

Filter posts by the Tags of Blog section!

Technical Skills, Software Development, Real World Solutions, Enterprise Applications.
The IDocumentSession in RavenDb should be registered per lifetime scope while the DocumentStore should be resisted as a single instance in Autofac. It's my third time that I'm making a big mis...

Sunday, 04 December 2016
In my previews blog post I wrote about Z.bulkOperation. I migrated to sqlbulktools just because it's free with the same ability! (to be frank). Now to see the reason for my migration, fire up visu...

Wednesday, 16 November 2016
Today I was tackling with a problem. It was about inserting and updating 200000 records of data. I just wanted to find a solution rather than writing Store Procedure. I just searched on the web and fo...

Tuesday, 25 October 2016
   Multithreading: Based on Microsoft definition, multithreading is the ability of a central processing unit to execute multiple processes or threads concurrently.  In multithre...

Saturday, 18 June 2016
Maybe you know about the deferred execution unconsciously. This sexy phrase refers to the point of LINQ queries when it executed. Although executing the LINQ query should be considered and after doing...

Thursday, 12 May 2016
MongoDB offers the GridFS driver for handling files and you can easily upload files into MongoDB. There are lots of benefit of Storing files and metadata in one place in DB. The first thing which come...

Wednesday, 04 May 2016
Based on Microsoft definition "Func is a generic delegate that encapsulates a method that can accept parameters and return some value." There is about 17 override for Func in ...

Monday, 07 March 2016
FluentFTP is a lightweight opensource library for FTP operations and I have used it several times in the applications I have worked on. You can refer to the documentation of the project on GitHub for ...

Saturday, 27 February 2016
While I was working with asp.net core, I encountered with getting the configuration setting from the JSON file and After searching on the web I found out that there would be different ways to do that....

Tuesday, 09 February 2016
using System; using System.Net; using System.Net.Mail; public static class EmailHelper {     public static async void SendMail(MailParams mail)     { &nb...

Friday, 22 January 2016
In asp.net MVC there is a custom error in web.config like below: <customErrors mode="On"> <error statusCode="404" redirect="~/404.html"/> </cust...

Wednesday, 13 January 2016
If you search in the web for calling web API from C# Code, not from URL, you will find lots of sample on getting and hard enough on the POST! I don't know why but I want to share with you a simple...

Tuesday, 05 January 2016
Recently I had a task on a project to get the overall CPU usage in a Dot Net web application. After searching and testing some codes, the following code gave me the exact result:   ...

Monday, 28 December 2015
In simple words, generators are a way of creating iterators. A generator is a function that returns an object that can iterate over in a fast, easy, and clean way. You can use it with a for a statemen...

Monday, 07 December 2015
You know that the cookie could be stolen by attackers. As nothing is secure until it's designed to be so, to make your cookie safe, firstly use HTTPS and make it required in your Web.config : &...

Monday, 28 September 2015
Assume the following enum:       public enum SettingKey     {         APIVersion = 1,  &n...

Sunday, 19 July 2015
The Internet is not all about www (world wide web) that we interact with every day. The web is only one of the most used protocols on the internet. For example, you don’t search on the internet ...

Monday, 06 July 2015
Since releasing Entity Framework code first, I've approximately haven't written any SQL code to Table Migration! I was just thinking about that and tried to add a column to an SQL server table...

Monday, 04 May 2015