Lightswitch sliverlight Application System Development

Source: Internet
Author: User

Lightswitch Development

What is lightswitch?

To put it simply, lightswitch is a template-Based Automated development Silverlight application.ProgramDifferent from the general data dictionary-based tool for configuring the generated application, because all templates provided by lightswtich can be expanded and customized, including page layout, data Source, controls used. It is very convenient to implant. netCode.

Lightswitch is a cropped vs product, which is used to develop line of business (LOB) applications more easily. It is similar to access. Lightswitch provides the easiest way to create business applications for cloud and desktop.

Lightswitch provides a variety of pre-created templates and tools to create commercial applications for Windows clients and Windows Azure, and minimize the amount of code you need to write. With the advent of lightswitch, we finally have a tool that allows business experts to easily create business applications (LOB) with professional quality levels ), instead of writing code. This is critical because some of these commercial applications may be created for short-term needs and often require extension and IT support.

Lightswitch Functions
    • Lightswitch generates the Silverlight application.
    • It has several built-in templates
    • Programming LanguageSupports C # and VB. NET
    • Supports SQL Server, SQL Azure, Sharepoint, and office
    • Applications can run in a browser, out of browser mode (ofB), or in the cloud
    • Lightswitch completes a lot of basic work, including a lot of drag-and-drop features, but it also allows developers to access. NET Framework as needed.
Try these functions in practice

Recently, it was really good to have a customer say that he needs a small tool for attendance management. Import the logging records collected by the electronic attendance machine and print out a report showing the persons with abnormal attendance, late arrival, early departure, overtime, and no punching records. Make a simple statistical analysis.

Start lightswitch development.

Development Environment requirements

Visual studio.net 2010 SP1

Lightswitching 2011

Silverlight 4 SDK (Silverlight 4 tools)

Lightswitch application Layout

The following is a default lightswitch Application Group interface. Of course, this main interface can also be customized and extended.

The following are some examples of how to scaleArticle

Http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/28/Running-a-LightSwitch-Application-With-A-Blank-Shell.aspx

Visual studio.net 2010 Development View

Applicationdata contains the data entity. Of course, the data source can be a SQL database, WebService/WCF/Ria, or a Sharepoint document library or list.

The following is the operation interface in screens. Five operation interfaces (crud) are provided by default)

Implement the crud Function

The following is the holiday maintenance function page,

Create a data table entity

Create a national holiday maintenance entity, applicationdata, under addtable.

The holiday date. calweek is a calculated field. If the week is returned through the holiday, whether iswork is on vacation or off.

Convert a field to a computable

Select is computed and click Edit Method to implement the computing function through code.

Returns the day of a week.

Create an editing page

Click screens to create an operation interface Add screen and select the template you want. Here we need a crud maintenance, so select [editable grid screen]. Select the corresponding operation data table (entity)

Debug running interface after creation

Add a record and click "+"

Edit

Add, edit, and click [Save] after deletion to submit data

Similar simple operations can be completed without writing any code.

Create a query

The query interface is as follows: query by department, employee name, attendance date, and status.

You do not need to write a line of code to make such a query.

Let's go back to the settings page.

Design your query Conditions

Drag these controls to the page layout

 

This is a simple demonstration.

Subsequent courses

Next I will prepare a detailed description of how to complete a specific business application system.

    • how to connect existing databases and create databases, such as WCF and RIA, related to data sources.
      • define a data source.
      • display and verify the formatted data.
      • sort data sources by query.
      • relational data definition: one-to-many, multiple-to-many.
    • screen-related, User Interface Design
      • How to Create a query, edit, and add a page
      • how to create a one-to-many operation interface
      • how to pass Parameters on the page
      • modify navigation menu
      • added a commandbutton to customize the input control
    • code-related: add the code implementation logic to screen.
      • How to initialize the input value or calculate the child segment value.
      • access the data source through code and operate the data table.
      • use code to process data event operations such as saved, Seleting, click, execute, and cando
    • permission management
      • how to set the authentication method, form, windows,
      • new users, groups, and permissions
      • How to authorize screnn and button execution based on permissions
    • Office interoperability
      • import and export data in Excel.
      • word import and export.
      • outlook integration
    • deployment operations
      • Web deployment
      • desktop deployment
    • custom control development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.