CTS( common type system) brings all .net languages data types on a common platform. It defines types like System.Int16, System.Int32 etc. A language may map 'int' to System.Int16 while another may map its 'int' data type to System.Int32.
Because all data types from all languages are mapped to common .net datatypes we can integrate code written in different .net languages into one assembly.
Showing posts with label Dotnet. Show all posts
Showing posts with label Dotnet. Show all posts
Aug 29, 2009
What is Common Language Specification (CLS)?
Common Language Specification is a set of rules that all Dotnet Languages must follow to achieve Cross Language interoperability.
Its a subset of Common Type System.
Its a subset of Common Type System.
Labels:
Dotnet
Enhance Dotnet performance
1. Avoid excessive round trips to the server.
2. Use Page.IsPostback.
3. Enable or disable viewstate accordingly.
4. Use Response.Write for String concatenation.
5. Never use exceptions as a way to control normal program flow.
6. Use stored procedures.
7. Cache data and output wherever possible.
8. Disable Session State when not in use.
9. Use SqlDataReader for a fast-forward, read-only data cursor.
2. Use Page.IsPostback.
3. Enable or disable viewstate accordingly.
4. Use Response.Write for String concatenation.
5. Never use exceptions as a way to control normal program flow.
6. Use stored procedures.
7. Cache data and output wherever possible.
8. Disable Session State when not in use.
9. Use SqlDataReader for a fast-forward, read-only data cursor.
Labels:
Dotnet
Jun 2, 2009
Use UDL to create the string for you.
1. Open Notepad
2. Save the blank notepad with any name but ending in .udl
3. Close Notepad
4. Find the UDL
5. Open the UDL which will create the connection string for you
6. Close the UDL
7. Open the UDL in notepad There's your connection string Should look something like the following: [oledb] ;
Everything after this line is an OLE DB initstring
Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Adam;Data Source=TURNER-1B9A9553\SQLEXPRESS vamsi
2. Save the blank notepad with any name but ending in .udl
3. Close Notepad
4. Find the UDL
5. Open the UDL which will create the connection string for you
6. Close the UDL
7. Open the UDL in notepad There's your connection string Should look something like the following: [oledb] ;
Everything after this line is an OLE DB initstring
Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Adam;Data Source=TURNER-1B9A9553\SQLEXPRESS vamsi
Labels:
Dotnet
Subscribe to:
Posts (Atom)