• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Blog
  • Power Platform
    • Power Apps
    • Power Automate
    • Power BI
    • Power Virtual Agents
  • Dynamics 365
  • Azure
  • About Me
Joe Gill Logo

Joe Gill

Microsoft MVP - Power Platform Consultant

Home » .NET » Dynamic Data Templates in VS 2008

Dynamic Data Templates in VS 2008

19th March 2009 by Joe Gill Leave a Comment

The Dynamic Data templates option in VS 2008 can be a bit confusing so here is an overview.

The “Dynamic Data Entities Web Site” template create an empty Entity Framework project and you use Add -> New -> ADO.NET Entity Data Model to add your data model to the project. The Dynamic Data routing is configured in the global.asax file.

If you want to control how Dynamic Data creates the UI and validates data input then add a new class using the System.ComponentModel.DataAnnotations name space. Example below

[MetadataType(typeof(Account_Metadata))]
public partial class Account
{
}

public partial class Account_Metadata
{

[ScaffoldColumn(false)]
public object UpdateDate { get; set; }

[StringLength(30)]
[Required(ErrorMessage = “Account name is required.”)]
public object Description { get; set; }

The “Dynamic Data Web Site Wizard” template creates a Linq to Sql based project and the wizard guides you through the creation of the dd web site. As part of this you will get an option to create specific input forms for each entity.

It automatically creates a class named file YourModelDataContext.partial.cs which contains all the MetaData classes.

The routing info is in the class DynamicData.cs

Share This On Social:
  • Tweet
  • Dynamic Data Templates in VS 2008 - Joe Gill

Filed Under: .NET

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Popular Categories

  • Power Platform
    • Power Apps
    • Power Automate
    • Power Virtual Agents
  • Azure
    • Logic Apps
  • Dynamics 365
  • .NET
  • AI
  • SQL

More to See

Power Platform Requests – Base Request Capacity

17th December 2020 By Joe Gill

Power Automate Desktop

Power Automate Desktop – UI Flow

26th November 2020 By Joe Gill

Synapse Link for Dataverse – Metadata

5th July 2022 By Joe Gill

extract table from pdf and write as csv file using Power Automate Desktop

Extract Tables from a PDF using Power Automate Desktop

23rd May 2022 By Joe Gill

Tweets

Footer

Joe Gill

Microsoft Business Applications MVP – Power Platform, Dynamics 365 and Azure.

An architect with over twenty years experience designing and developing technology solutions. Specializing in the Microsoft technology stack including Power Platform, Dynamics 365 and Azure. Microsoft MVP Profile

Connect on Social

Useful Links

  • Home
  • Blog
  • About Joe Gill
  • Power Platform
  • Dynamics 365
  • Azure

Featured Posts

Power Platform Requests – Base Request Capacity

Power Automate Desktop – UI Flow

Power Fx Formula Columns in Dataverse

Synapse Link for Dataverse – Metadata

Extract Tables from a PDF using Power Automate Desktop

Dataverse Anonymization

© 2022 · Joe Gill