ASP.NET 3.5 Hosting

12/02/2009

The. NET Framework 3.5 is based on the new features found in. NET Framework 3.0 and brings a new version of ASP.NET on the main stage with ASP.NET 3.5. Innovations implemented fully supports ASP.NET 3,5 hospitality as well as earlier versions. NET Framework. Between the introduction of new technologies are:

Language Integrated Query (LINQ) in .NET 3.5:

With LINQ in .NET Framework 3.5, the process of building SQL queries using error-prone string manipulation is a thing of the past. LINQ makes your relational data queries a first-class language construct in C# and Visual Basic, complete with compiler and Intellisense support. For Web applications the ASP.NET LinqDataSource control allows you to easily use LINQ to filter, order and group data that can then be bound to any of the data visualization controls like the ListView and GridView controls.

New ListView and DataPager Controls:

AJAX Integration:

AJAX is one of the most promising technologies in web development and has already gone far in improving the web user’s experience. Basically what it means is that an AJAX enabled web page can query the server and redisplay a part or the web page without the whole page needing to be refreshed. The LINQ syntax is possible due to a number of new language features in C# and Visual Basic, including automatic properties, extension methods, and lambda expressions.

For example, in a registration form that asks you to type in a new username for yourself, you must have noticed that after typing in a username, some web pages tell you immediately whether or not that username is available after you remove focus from the textbox. Under normal circumstances, you would have to click a "Check if username is available" link, or wait for the form to be submitted before you were informed of the error.

In this case, AJAX is to be able to automatically query a backend database and allow the body of the page with the availability status without changing reload the entire page below. This has the advantage of saving bandwidth and improving the user experience.

Works best with SQL Server:

Several features of .NET are automatically configured for ease of use with Microsoft's SQL Server. However, with modern hosting plans these days, you get to use MSSQL's Web edition with unlimited scalability. This is a boon to .NET developers everywhere!

All in all, ASP.NET is the main programming platform, and the latest addition to the 3.5 release, SQL Server Web releases of the developers to hold back up anything from this fine programming framework is not.

Hence we conclude that new versions of Visual Studio and ASP.NET add some interesting and overdue features. With ASP.NET 3.5, Microsoft has moved the ASP.NET AJAX framework from a stand-alone extension to part of the .NET Framework, and has rounded out its data Web controls offerings with the addition of the ListView and DataPager controls. Visual Studio 2008 includes enhancements to the web developer experience, including a richer Designer, enhanced CSS editing capabilities, JavaScript IntelliSense and debugging, and the ability to mutli-target framework versions.

Posted in: asp.net| Tags: NET language framework version linq asp stage hosting innovations hospitality

.NET RIA Services links

06/29/2009

One of the common tasks that .NET RIA Services developers have to undertake is testing their mid tier business logic code. Mid tier code typically uses a data access layer (DAL) like Linq to SQL or Linq to Entities for persisting data. However directly coupling the business logic code to the DAL will pose challenges for unit testing and causes tests to depend on the database. One possible solution to avoid this problem is to adopt the repository pattern and write business logic code to go against repository.

The following steps demonstrates an implementation of a domain service class using a repository to make it unit testing friendly. The example code uses the .NET RIA services walkthrough application as its starting point and is modified to use Linq To SQL as DAL.

( Unit Testing Business Logic in .NET RIA Services: http://blogs.msdn.com/vijayu/archive/2009/06/08/unit-testing-business-logic-in-net-ria-services.aspx )

 

Microsoft .NET RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.

Posted in: C# and .NET| Tags: Business NET RIA RIA Service Code logic testing linq tier repository sql unit

What's New in ADO.NET 4.0

06/04/2009

The following features are new in ADO.NET with the .NET Framework version 4.
ADO.NET Entity Framework

The Entity Framework is part of a multi-release strategy to decrease the amount of coding and maintenance required for developers by enabling them to program against data models defined in terms of entities and relationships. For more information, see Entity Framework Overview.

The following features are new to the Entity Framework in .NET Framework 4.
Persistence-Ignorant Objects

You can use your own custom data classes together with your data model without making any modifications to the data classes themselves. This means that you can use "plain old" CLR objects (POCO), such as existing domain objects, with your Entity Framework application. For more information, see Persistence Ignorant Objects (Entity Framework).
Deferred Loading of Related Objects

With deferred loading, also known as lazy loading, related objects are automatically loaded from the data source when you access a navigation property. For more information, see Shaping Query Results (Entity Framework).
Functions in LINQ to Entities Queries

The EntityFunctions and SqlFunctions classes provide access to canonical and database functions from LINQ to Entities queries. The EdmFunctionAttribute allows a CLR method to serve as a proxy for a function defined in the conceptual model or storage model. For more information, see Calling Functions in LINQ to Entities Queries.
Customized Object Layer Code Generation

You can configure the ADO.NET Entity Data Model Designer to use text templates to generate customized object layer code. For more information, see How to: Customize Object Layer Code Generation.
Model-First Support

The Create Database Wizard enables you to do conceptual modeling first, and then create a database that supports the model. For more information, see How to: Generate a Database from a Conceptual Model.
Complex Type Support

The ADO.NET Entity Data Model Designer now supports complex types. For more information, see the following topics:

    *      How to: Create and Modify Complex Types
    *      How to: Add a Complex Type to an Entity Type
    *      How to: Map a Function Import to a Complex Type
    *      How to: Map Complex Type Properties to Table Columns

Naming Service

The Entity Data Model Wizard and the Update Model Wizard provide the option of using singular or plural forms of Entity, EntitySet, and NavigationProperty names to make application code more readable. For more information, see Choose Your Database Objects Dialog Box (Entity Data Model Wizard) and Choose Your Database Objects Dialog Box (Update Model Wizard).
Improved Model Browser Functionality

The Model Browser window of the ADO.NET Entity Data Model Designer enables you to delete objects from the storage model and to search the conceptual and storage models for a specified string. For more information, see Model Browser Window and How to: Delete Objects from the Storage Model.

WPF and Silverlight Designer

In Visual Studio 2010, various designer improvements have been made to help create WPF or Silverlight applications.

    *      Improved Support for Silverlight

      In Visual Studio 2008, you could install the Silverlight Tools to create Silverlight applications in Visual Studio. However, the designer support for Silverlight projects was limited to a read-only Preview window. In Visual Studio 2010, the designer support for Silverlight and WPF projects are now the same. For example, in Silverlight projects you can now select and position items with the mouse on the design surface.
    *      Support for Multiple Platform Versions

      In Visual Studio 2008, control design times were able to target only the latest WPF platform version. In Visual Studio 2010, this support is extended across multiple platforms, including design-time support for WPF 3.5, WPF 4, Silverlight 2, Silverlight 3, and future platform releases. As the same extensibility API exists for all these platforms, control design-time authors can easily write one experience and share it across the control runtimes for each platform.
    *      Visual Databinding

      The new data binding builder enables visual construction and editing of bindings without typing XAML.
    *      Auto Layout

      Layout improvements include a more intuitive Grid designer and better support for automatically sizing user controls.
    *      Improved Property Editing

      The Properties window now enables visually creating and editing Brush resources.

Posted in: C# and .NET| Tags: NET Database .NET 4.0 New ADO.NET Information framework linq model entity objects loading ado

Hot Posts

Latest posts

Tags

Others

Sponsors

asp.net interview questions