Tag: .Net

Implement Repository pattern in .Net

   The intention of this post is to explain about the Repository pattern and how its useful in enterprise applications. Introduction Why use Repository Misconceptions Implementation Conclusion Source Code Introduction The repository […]

Download/Upload files using FTP in C#

        What is FTP?  FTP(File transfer protocol)  is a client-server protocol that relies on two communications channels between client and server: a command channel for controlling the […]

Swap two variable without using the third variable

using System; namespace Swap { class Program { private static void Main(string[] args) { int a = 1000; int b = 999; Console.WriteLine(“Before Swap”); Console.WriteLine(“Value of A :{0} “, a); […]

Singleton thread-safe class in c#

Introduction The singleton pattern is one of the best-known patterns in software engineering. Essentially, a singleton is a class which only allows a single instance of itself to be created, […]

Handle CreatedDate,ModifiedDate,CreatedBy and ModifiedBy in Entity Framework

What is created date and Modified date and when we use this? Keeping CreatedDate, ModifiedDate,  CreatedBy, and ModifiedBy or auditing columns in the database tables is part of good practices […]

Dot Net Interview questions for Experience

What is connection pooling? When should we use connection pooling? What is strong Dll? What is bucketing in the database? Do we need a certificate in client machine for HTTPS? […]