Access Modifier
|
Description
(who can access)
|
private
|
Private members are accessible only within the
body of the class or the struct in which they are declared.
|
protected
|
A protected member is accessible from within the class in which it is
declared, and from within any class derived from the class that declared this
member.
|
internal
|
Internal members are accessible only within files
in the same assembly
|
protected
internal
|
Either code from derived type or code in the same assembly.
Combination of protected OR internal.
|
public
|
There are no restrictions on accessing public
members.
|
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...