Blog - Title

Browse by Tags

Tagged Content List
  • Blog Post: LightSwitch Tips & Tricks on Query Performance

    LightSwitch allows you to connect to multiple data sources, relate them together, and create screens to edit the data. These data sources can be a variety of databases like SQL Server and SQL Azure, SharePoint, and custom RIA services. With the release of Visual Studio 11 Beta , the next version of LightSwitch...
  • Blog Post: Using the Save and Query Pipeline to Flag and Filter Data with LightSwitch in Visual Studio 11

    Note: This information applies to LightSwitch in Visual Studio 11 (LightSwitch V2) In business applications sometimes we need to flag records with additional attributes in response to business rules and then consistently filter those flagged records in some way or another throughout the application....
  • Blog Post: Working with SQL Server LocalDB in LightSwitch Projects in Visual Studio 11

    Note: This article applies to LightSwitch in Visual Studio 11 Beta (LightSwitch V2) In Visual Studio LightSwitch , when you design your data model through the Data Designer you are either creating new tables or attaching to external data sources. When you create new tables, LightSwitch automatically...
  • Blog Post: Using Different Edit Screens Based on Record Types (Table Inheritance)

    I had a reader ask a question this week on how to use Visual Studio LightSwitch to open different Edit Detail screens based on the “type” of record. This is a very common thing to do especially for data models that use table inheritance (or sub-tables). For instance say we are building an application...
  • Blog Post: Creating Cascading Drop Down Lists in Visual Studio LightSwitch

    A common technique on data entry screens is using one “drop down list” (called an auto-complete box in LightSwitch) as a filter into the next. This limits the amount of choices that need to be brought down and guides the user into easily locating values. This technique is also useful if you have cascading...
  • Blog Post: Beginning LightSwitch Part 2: Feel the Love - Defining Data Relationships

    Welcome to Part 2 of the Beginning LightSwitch series ! In the last post we learned about tables, or entities, in LightSwitch and how to use the Data Designer to define them. If you missed it: Beginning LightSwitch Part 1: What’s in a Table? Describing Your Data In this article I want to focus on data...
  • Blog Post: Beginning LightSwitch Part 1: What’s in a Table? Describing Your Data

    Welcome to Part 1 of the Beginning LightSwitch series ! To get things started, we’re going to begin with one of the most important building blocks of a LightSwitch application, the table . Simply put, a table is a way of organizing data in columns and rows. If you’ve ever used Excel or another spreadsheet...
  • Blog Post: Using the Save and Query Pipeline to “Archive” Deleted Records

    Before Microsoft, I used to work in the health care industry building software for hospitals and health insurance companies. In all of those systems we had detailed audit trails (change logging), authorization systems, and complex business rules to keep patient data safe. One particular requirement that...
  • Blog Post: Common Validation Rules in LightSwitch Business Applications

    Checking the validity of data input is a common requirement for any application that interacts with humans (and other systems), particularly business applications. I’ve never seen or written a data-entry application without implementing common validation rules for inputting data. LightSwitch has many...
  • Blog Post: How to Connect to and Diagram your SQL Express Database in Visual Studio LightSwitch

    Visual Studio LightSwitch makes it easy to create and model database tables using the Data Designer . With this designer you have a simple interface into the Tables, Columns and Relationships that make up your data model. When you create tables this way, under the covers LightSwitch creates a SQL Express...
  • Blog Post: Filtering Lookup Lists with Large Amounts of Data on Data Entry Screens

    First off let me say WOW, it’s great to be back to blog writing! Sorry I have been away for a couple weeks – I’ve been working on a lot of cool stuff internally since I got back from my trip . And I know I have a loooooong list of article and video suggestions from all of you that I...
  • Blog Post: Relating and Editing Data from Multiple Data Sources on the Same Screen

    In my last article I showed how to connect LightSwitch to SharePoint data in order to pull users’ Task Lists into your LightSwitch applications. If you missed it: Using SharePoint Data in your LightSwitch Applications There we created a screen that pulled up the logged in users’ tasks from SharePoint...
  • Blog Post: How to Create a Simple Audit Trail (Change Log) in LightSwitch

    A common requirement in business applications is to capture changes to data records and save them in a history table of some sort. For instance, when an employee’s HR record is changed, you need to log the original and new field values as well as who made the changes so that there is a visible audit...
  • Blog Post: Build WPF Data Controls for Outlook Addins Easily with VS2010

    Last post I showed how to migrate our Northwind Outlook client to .NET 4 and Office 2010 . This Outlook Add-in displays order history information in an adjoining form region so sales associates can see that data immediately when communicating with customers. When we originally built this with Visual...
  • Blog Post: Building Occasionally Connected Smart Clients with WPF

    This month Dev Pro Connections has an article by Milind Lele on using Sync Services in a WPF application: Building Occasionally Connected Smart Clients with WPF With Sync Services and Visual Studio 2008 you can visually design your local data cache and have it automatically synchronize your data with...
  • Blog Post: Inserting Master-Detail Data into a SQL-Server Compact Edition Database

    Yesterday John posted on the Visual Studio Data blog how to Refresh the Primary Key Identity Column during an Insert Operation using SQL Server. In that post he shows how the DataSet designer sets up a batch Insert statement to retrieve identity keys automatically. A while back I wrote about how to insert...
  • Blog Post: New “How Do I” Videos Released on Entity Framework & WPF

    Yesterday we released a couple more videos onto the Visual Basic Developer Center on building WPF data-entry forms with Entity Framework: How Do I: Hook Up and Display Validation in WPF using Entity Framework? How Do I: Build a WPF Master-Detail Data Entry Form Using Entity Framework? That makes 5 videos...
  • Blog Post: N-Tier Application Patterns with Entity Framework

    This month’s MSDN Magazine has a particularly good article in there by Danny Simmons , Development Manager on the Entity Framework team, on N-Tier Application Patterns with Entity Framework   that I recommend reading through. He explains the design considerations you need to take into account when...
  • Blog Post: Working with a Local Database File in Visual Studio

    In this post and video I’ve shown folks how to work with a local database file (.mdf, .mdb, .sdf) that resides directly inside your project in order to see updates made while debugging your application. If it looks like everything saves fine while debugging, but you can’t see the updates if you look...
  • Blog Post: Filtering Child DataTables Using TableAdapters

    Since my last post on filtering child collections using Entity Framework , I have had more than a few emails about how to load filtered child DataTables that are part of a master-detail relationship and then get them to save properly through the TableAdapters. Many people are running into the problem...
  • Blog Post: Master-Detail Data Binding in WPF with Entity Framework

    Today I thought I would talk about a really common scenario in data applications, creating a master-details (one-to-many) data entry form. I’ve written about WPF data binding and Entity Framework a lot in the past: Posts: Master-Details with Entity Framework Explicit Load Loading Data and...
  • Blog Post: WPF Data Binding Samples on Code Gallery

    One of the many samples released for Visual Studio 2010 Beta 1 that you should be aware of are examples of WPF data binding against Entity Data Models. You can find some easy to follow samples here: http://code.msdn.microsoft.com/WPFDatabinding This sample demonstrates how to create a WPF Forms solution...
  • Blog Post: Visual Studio 2010 Beta 1 – Everyone can download and play today!

    Here it is folks, Visual Studio 2010 Beta 1 has been released to the public today. Check out the Visual Studio 2010 and .NET Framework 4 Beta 1 site to download the Beta, submit product feedback on the Beta 1 Forums , report bugs on Connect , and find additional information. Also visit the Beta 1 walkthroughs...
  • Blog Post: Using TableAdapters to Insert Related Data into an MS Access Database

    I’ve posted before about how to use TableAdapters to update parent-child (master-detail) relationships against SQL server. It’s pretty straightforward and Visual Studio generates all the code for you to properly insert, update and delete your data. However if you’re using MS Access then there’s one thing...
  • Blog Post: Using the WPF ObservableCollection with EF Entities

    The ObservableCollection is a special WPF collection that provides proper notifications to the UI when items are added, removed, or the list is refreshed because it implements INotifyCollectionChanged . It’s common to use this collection (or inherit from it) to contain your business objects you want...
Page 1 of 4 (81 items) 1234