Wednesday, May 30, 2012

Access Modifiers


ACCESS MODIFIERS :
•PUBLIC doesn’t have any restrictions. It can be visible to any method of any class.
•PRIVATE accessible for only that class.
•PROTECTED marked members are accessible only to the methods of that class and its derived classes.
•INTERNAL marked members are accessible to that assembly which it belongs to.
•PROTECTED INTERNAL marked members are accessible to its assembly and its derived classes of any other assemblies.

Unique key and Primary key


Unique key : 

1) Unique key can have nulls.
2)We can create multiple unique keys on a table.
3)Unique key Creates a non-Clustered Index by default.

Primary Key :    

1)Primary key cannot have nulls.
2)We can have only one Primary key on a table.
3)Primary key Creates a Clustered Index by default.

Both Unique keys and Primary keys can be referenced by foreign key.

Managed Code and Unmanaged Code


A Code that Executed with in the instructions of CLR is Called 'Managed Code'.
A Code that Execute with out the instructions of CLR is Called 'UnManaged Code'.

Protected by Copyscape Plagiarism Software