TechBubbles

Archive for the '.NET Framework 4' Category

Deploying Database with ASP.NET Web application

 

Web applications can be deployed in two different ways one by using one-click publish or by using a Web deployment package. Usually we may want to deploy our database scripts that we used along with the application deployment. This post discusses the procedures to deploy the database along with web application in Visual Studio 2010.

Assume there is no database exist in destination and configure the below steps for first-time database deployment

Read more

Related Posts:

1 comment

Creating a UML Model Diagram in Visual Studio 2010

 

This post discusses about how to use UML models and diagrams in Visual Studio 2010 ultimate edition. Models are very useful to describe the requirements and design of the system. Models help you to visualize how system works and clarifies the user needs and finds the architecture of the system.

1. Launch the Visual Studio 2010 and create a new project by selecting the modeling from templates window as shown below

image

2. In this empty project , you will find an empty .uml file which is an xml document which holds all the UML elements

Read more

Related Posts:

1 comment

Creating a Sample Visual Studio LightSwitch Beta2 Application

 

Microsoft Visual Studio LightSwitch allows the developers to create a high-quality line of business applications with less writing of code. LightSwitch provides the screen templates for common business tasks such as data entry, search , formatting and displaying the data. LightSwitch includes built-in functionality to validate the input with little or no code. We can also write the code either in C# or VB.NET to extend the business logic. image

Read more

Related Posts:

5 comments

WCF AJAX Service Without Configuration

 

This post discusses how to develop Windows Communication Foundation (WCF) service using AJAX and without any configuration settings for WCF. This service can be consumed from Javascript. The service uses a special setting in .svc file which automatically enables an AJAX endpoint.

Read more

Related Posts:

No comments

WCF Service using MTOM in .NET FW 4

 

Web services having a greater interoperability to communicate messages across heterogeneous systems, however challenge is serializing the data into XML. Users may want to send images,videos, drawings, xml documents etc. together with SOAP message. 

What is MTOM?

Message Transmission Optimization Mechanism (MTOM) is a mechanism of transferring transferring large amounts binary data as an attachment to SOAP message.

Typical SOAP message transmission shown in the below image

MTOM Process

Image Source crosscheknet.com

Read more

Related Posts:

1 comment

Guidelines for Developing Class Libraries in .NET

This post explains about design guidelines for developing class libraries that extends the .NET Framework. Following design guidelines provides benefits of consistency and unified programming model for developers.

Naming Conventions for Casing Identifiers

There are two different styles in Casing Identifiers

Read more

Related Posts:

3 comments

Visual Studio 2010 Service Pack 1 Beta Released

 

Microsoft announced VS 2010 Service Pack1 Beta  and is ready for download. MSDN subscribers can download beta from here

General users can download from here

Service Pack 1 Beta including the following features

Read more

Related Posts:

No comments

.NET Framework 4 File IO Features

New methods are added to the System.IO.File class in .NET framework 4.0 for reading and writing text files.

ReadLines

In earlier version we have used File.ReadAllLines method which returns a string array of all lines in the file.

String[] lines = File.ReadAllLines(“file.txt”);

Read more

Related Posts:

1 comment

.NET Framework 4 SortedSet

You can get the overview on what’s new in .NET FW BCL by reading my post .NET Framework 4 BCL. This post explains about one of the feature SortedSet. .NET Framework 4 adds a new collection to System.Collections.Generic, named  Sorted Set<T>.  It is like HashSet<T>  collection of unique elements, but SortedSet<T> keeps the elements in sorted order.

The Collection is implemented using red-black tree datastructure. Compared to HashSet<T> provides lesser performance for insert,delete and lookup operations. Use this collection if you want to keep the elements in sorted order.

Read more

Related Posts:

No comments