Static Constructor
|
Private Constructor
|
The static constructor will only be executed once.
|
The private constructor will be executed each time it is called.
|
The static constructor cannot have parameters.
|
The private Constructor may have parameters
|
A static constructor is called before the first instance is created. So it’s kind of global initialize.
|
Private constructor is called after the instance of the class is created. Inheritance-wise both are same.
|
A class can have only one static constructor
|
A class can have multiple private constructors
|
public static class Class1
{ static Class1() { } } |
public class Class2
{ private Class2() { } } |
Connected Architecture of ADO.NET The architecture of ADO.net, in which connection must be opened to access the data retrieved from database is called as connected architecture. Connected architecture was built on the classes connection, command, datareader and transaction. Connected architecture is when you constantly make trips to the database for any CRUD (Create, Read, Update and Delete) operation you wish to do. This creates more traffic to the database but is normally much faster as you should be doing smaller transactions. Disconnected Architecture in ADO.NET The architecture of ADO.net in which data retrieved from database can be accessed even when connection to database was closed is called as disconnected architecture. Disconnected architecture of ADO.net was built on classes connection, dataadapter, commandbuilder and dataset and dataview. Disconnected architecture is a method of retrieving a r...
It 's an amazing article and useful for developers
ReplyDelete.Net Online Course