Tip : Code Structure C#
Feb03

Tip : Code Structure C#

Welcome to CodeSpread! As a developer, I always stress on developing a habit of following the best practices to structure the code. It helps me to easily navigate through the code and also saves a lot of effort in searching for some particular items. Below is the sample structure and example: using statements Constants / Read-only fields Private Members Enumerations Public members Protected members Constructors Properties Public...

Read More
OLAP : On-line Analytical Processing
Jan06

OLAP : On-line Analytical Processing

What is OLAP? We know that there are two kinds of database applications available, OLAP and OLTP. Before we go for OLAP, I would like to tell you something about OLTP. OLTP is On-line Transaction Processing. By transaction, we mean any operation including INSERT, UPDATE, and DELETE statements. And, just like any other transaction system, the main concern here is ACID rules. Let’s take an example of banking transaction systems, where a...

Read More
Simply LINQ: What,Why and How.
Dec24

Simply LINQ: What,Why and How.

What is LINQ? LINQ is Language-Integrated Query (LINQ). It is primarily an extension to the language’s capability where it adds query expressions which processes objects and data. It is a one stop solution to all the query processing as now there is no need to learn a different query language for each type of data source: SQL databases, XML documents etc. Why LINQ? Type safe. IntelliSense support. Tables are available as...

Read More
Interview Question: Why Garbage Collection required?
Dec13

Interview Question: Why Garbage Collection required?

What is garbage collection? In two words “Memory Management”. In two lines “Managing the lifetime of object starting from creation, allocation and release it back to free memory pool.” Why it is required? We have two scenarios here, Case 1: Where resources are not released. Scenario: Resources will keep on getting consumed and will result in memory leak. Case 2: Where resources are released irrespective of still being used in the...

Read More
Few lines about WCF metadata
Dec07

Few lines about WCF metadata

What is WCF metadata? WCF generates metadata for service endpoints and this metadata is used to describe how to interact with the service’s endpoints. This information is used by Svcutil.exe to generate proxy for accessing the service. WCF metadata is exposed by one or more metadata endpoints similar to service endpoints. They have an address, a binding, and a contract. This information is sent over standard protocols, such as...

Read More
Difference Between Transport and Message Security in WCF
Dec06

Difference Between Transport and Message Security in WCF

Transport Security in WCF As the name suggests, it is concerned with security of communication between client and the service over a network protocol. It guarantees the confidentiality and integrity of messages at transport level. Transport security is required for point-to-point security between the two endpoints and is dependent on the transport [protocol] being used. The simplest approach is to encrypt and send it over HTTPS...

Read More
Page 1 of 512345