Wednesday, 10 June 2015

Introduction of WCF

Introduction of  WCF

There are a number of existing Technology to building distributed applications. These are includes Web services, .NET Remoting, Message Queuing (MSMQ) . Windows Communication Foundation (WCF) unifies these into a single framework for building and consuming services. Microsoft originally introduced WCF as part of the .NET Framework 3.0 and has continued to enhance it for the .NET Framework 3.5 and Visual Studio 2008.

In this Section , you’ll see how to use WCF to build distributed applications. This first tutorial introduces the basics of building, hosting and calling a WCF service. Along the way, you will learn the basics of WCF, including the role of endpoints, which consists of addresses, bindings and contracts. You’ll also see a variety of techniques you can use for controlling the behavior of your services. (These tutorials assume that you have Visual Studio 2008 installed, along with the .NET Framework 3.5. You can choose to work in either Visual Basic or C#--the steps listed here call out specific differences between the languages, when necessary.)
WCF is a unified programming model for building service-oriented applications. Before you build a WCF service, you will explore what that means.

Wednesday, 3 June 2015

Basic Interview Questions in ASP.NET,C#.NET,SQL Server,.NET Framework


Difference between stored procedure and function in Sql Server.
1) Procedure can return zero or n values whereas function can return one value which is mandatory.
2) Procedures can have input, output parameters for it whereas functions can have only input parameters.
3) Procedure allows select as well as DML statement in it whereas function allows only select statement in it.
4) Functions can be called from procedure whereas procedures cannot be called from function.
5) Exception can be handled by try-catch block in a procedure whereas try-catch block cannot be used in a function.
6) We can go for transaction management in procedure whereas we can't go in function.
7) Procedures cannot be utilized in a select statement whereas function can be embedded in a select statement.
 Major Difference between in Abstract and Interface.
Abstract Class:

-Abstract class provides a set of rules to implement next class
-Rules will be provided through abstract methods
-Abstract method does not contain any definition
-While inheriting abstract class all abstract methods must be override
-If a class contains at least one abstract method then it must be declared as an “Abstract Class”
-Abstract classes cannot be instantiated (i.e. we cannot create objects), but a reference can be created
-Reference depends on child class object’s memory
-Abstract classes are also called as “Partial abstract classes”
-Partial abstract class may contain functions with body and functions without body
-If a class contains all functions without body then it is called as “Fully Abstract Class” (Interface)