add new issue       

Issue ID:  795     Update snippets and templates for CSLA4      
Created by JonnyBee on 2010-07-08 1:08 PM, 2784 days ago
Project:  CSLA .NET
Category:  enhancement
Priority:  low
Status:  closed
Feature area:Snippets/Templates
  Entering "issue#999" in comment creates link to id 999

show inline images      show change history

comment 2685 posted by JonnyBee on 2010-07-08 1:11 PM, 2784 days ago 
Updated snippets (C# and VB) to use
* public static readonly ProperyInfo / Public Shared ReadOnly ... Of PropertyInfo
* use Lambda Expression on register property name
* changed default value to actual type (rather than smartdate) for snippet cslapropc

Updated templates
* sample properties to use registerProperty with Lambda expression (only i C#)
* removed AddAuthorizationRules method as it is no longer in use
* added base.AddBusinessRules() / MyBase.AddBusinessRules to AddBusinessRules method to register DataAnnotations by default