Inheritance is an interesting object-oriented programming concept. It allows one class (the sub-class) to be based upon another (the super-class) and inherit all of its functionality automatically. Additional code may then be added to create a more specialized version of the class. In the example of vehicles, sub-classes for cars or motorcycles could be created. Each would still have all of the behavior of a vehicle but can add specialized methods and properties, such as ‘Lean()’ and ‘LeanAngle’ for motorcycles. Some programming languages allow for multiple inheritance where a sub-class is derived from two or more super-classes. C# does not … Click here to continue reading.
Advantages – On ordinary Web Forms pages, their view state is sent by the server as a hidden variable in a form, as part of every response to the client, and is returned to the server by the client as part of a post-back. However, to reduce bandwidth demand when using mobile controls, ASP.NET does not send a page’s view state to the client. Instead, the view state is saved as part of a user’s session on the server. Where there is a view state, a hidden field that identifies this page’s view state is sent by the server as … Click here to continue reading.
Templates allow to create generic functions that admit any data type as parameters and return value without having to overload the function with all the possible data types. Until certain point they fulfill the functionality of a macro. Its prototype is any of the two following ones: template function_declaration; template function_declaration; The only difference between both prototypes is the use of keyword class or typename, its use is indistinct since both expressions have exactly the same meaning and behave exactly the same way.
WCF stands for Windows Communication Foundation. It is a Software development kit for developing services on Windows. WCF is introduced in .NET 3.0. in the System.ServiceModel namespace. WCF is based on basic concepts of Service oriented architecture (SOA) WCF unifies ASMX, Remoting, and Enterprise Services stacks and provides a single programming model. WCF services are interoperable and supports all the core Web services standards. WCF services also provide extension points to quickly adapt to new protocols and updates and integrates very easily with the earlier microsoft technologies like Enterprise Services, COM and MSMQ.
LINQ to SQL • It use domain Model • It support only SQL server Database • Data source contains Tables only • It is simple to use • rapid development done from this Model • It can map class to single table • It is hard to apply Inheritance • dbml file only generated • Creation of complex properties is Not Supported • Query – LINQ to SQL (for select) – Data Context (for update, create, delete, store procedure, view) • Synchronization with Database if Database Schema is changed is not supported in this Model • Very slow performance for … Click here to continue reading.