Difference between Lazy Loading and Eager Loading

Lazy/Deferred Loading In lazy loading, related objects (child objects) are not loaded automatically with its parent object until they are requested. By default LINQ supports lazy loading. With Lazy Loading, we only retrieve just the amount of data, which we need in a single query. When we need more data related to the initial data, […]

Read More

Why we need Multi-threading in our project

Multi-threading is running the multiple threads simultaneously. We can do multiple tasks simultaneously with the help of Multi-threading. For e.g. saving the details of user to a file while at the same time retrieving something from a web service. Threads are much lightweight than process. They don’t get their own resources. They used the resources […]

Read More

Static Class in C#

Static Class:- We can create static class or member by using static keyword. Static class or member can be used when object of class or member not change every time. Static class or member are loaded at time of namespace are loaded by CLR. We cannot create instance of static class because static class member […]

Read More

Anonymous method in C#

Anonymous is a type that doesn’t have any name. Anonymous type allows you to create new type by using the new keyword and object initializer syntax without defining its class. The var is used to hold the reference of anonymous types. The Type of anonymous is generated by c# compiler that is accessible within the […]

Read More

Use of Fault Contract in WCF Service

In WCF Service, errors or exceptions can be passed to the Client (WCF Service Consumer) by using FaultContract. It’s very simple in Asp.Net by adding the Try & Catch blocks. But when you come to the WCF Service, if any unexpected error occurred (like SQL server down/Unavailability of data/Divide By Zero) in service, then error/exception […]

Read More

Difference between Finalize and Dispose

Methods dispose() and finalize() are the methods of C# which are invoked to free the unmanaged resources held by an object. The dispose() method is defined inside the interface IDisposable whereas, the method finalize() is defined inside the class object. The main difference between dispose() and finalize() is that the method dispose() has to be […]

Read More

What is the difference between HTTP PUT and POST methods

Both PUT and POST can be used for creating. But generally, in practice, we always use PUT for UPDATE and POST for CREATE operations. PUT :-  RFC-2616 clearly mention that PUT method requests for the enclosed entity be stored under the supplied Request-URI. If the Request-URI refers to an already existing resource – an update operation will […]

Read More

Async Module–Waterfall and Series in Node.js

Async module in Node.js provide a way to structure and organize our JavaScript Asynchronous callbacks code. In traditional coding practice, we nest multiple callbacks in the same function, that creates lot of confusion in code readability and maintainability. Async Module addresses the afore said problem by providing powerful functions through which we can get different […]

Read More

Self Joins in SQL

A self join is a join of a table to itself. This table appears twice in the FROM clause and is followed by table aliases that qualify column names in the join condition. To perform a self join, Oracle combines and returns rows of the table that satisfy the join condition. For example the following […]

Read More