Mindscape
  • Register
  • Login
  • YOUR CART IS EMPTY
home
Software
  • Developers Toolbox
  • LightSpeed
  • Raygun
  • WPF Elements
  • Web Workbench
  • Metro Elements
  • Silverlight Elements
  • NHibernate Designer
  • Phone Elements
  • WPF Diagrams
  • Simple DB management
  • Visual Tools for SharePoint
Downloads
Store
  • Buy online
  • Purchase order
  • Volume discounts
  • Reseller
  • Software license
  • Contact sales
Blog
Support
About
  • About Us
  • Contact
  • Testimonials
rss
twitter
facebook
Working with Models in the Visual Designer LightSpeed Model Explorer Workflows for Rapid Application Development Enums and Other User8209Defined Types Enums and Other User Defined Types Refactoring in the Designer Custom Views Linked Models Changing the Designer Defaults Customising the Generated Code ManytoMany Associations Designer Shortcuts and Tips

Changing the Designer Defaults

When you create an entity in ‘model first’ style – that is, by dragging an Entity icon from the toolbox – LightSpeed provides defaults for its various settings.  You can change the defaults for newly created entities by specifying a defaults policy.

To do this, open the LightSpeed Model Explorer, right-click the root model node, and choose Add New Defaults Policy.  You can then edit the defaults through the Policies folder.

You can change the defaults for:

·         Identity type.  The Identity Type for newly created entities.

·         Storage options.  The Track Create Time, Track Update Time, Soft Delete and Optimistic Concurrency Checking options for newly created entities.

·         Base class.  The base class for newly created entities.  Model-wide base classes are usually there to provide a few common fields or services, so this defaults to concrete table inheritance

·         New in LightSpeed 5, defaults can also be specified for generating association DataMember attributes.

The defaults policy affects only newly created entities, not existing entities.  If you create an entity by dragging a table from Server Explorer, LightSpeed uses the table definition to infer the identity type and storage options, ignoring the defaults policy, though the base class is still respected.

Data Products

  • LightSpeed ORM
  • NHibernate Designer
  • SimpleDB Tools
  • SharePoint Tools

DevOp Tools

  • Raygun

Visual Controls

  • WPF Elements
  • WPF Diagrams
  • Silverlight Elements
  • Phone Elements

Popular Products

  • Web Workbench

    Modern web development for Visual Studio!

  • Mindscape Megapack

    All Mindscape products for one awesome price!

Quick Links

  • Forums
  • Blog
  • Register
  • Login
  • Contact us
  • Twitter
  • Facebook
  • Google+
  • YouTube
  • Linkedin
  • Rss

© Mindscape 2025. Mindscape is a registered trademark of Mindscape Limited.

  • Terms
  • Privacy