Welcome to Microsoft .NET Framework 3.0 Community (NetFx3)

The .NET Framework is Microsoft's managed code programming model for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes.

Learn More...

Collection Processing with Rules

File Details
Downloads: 373 File Size: 170kB
Posted By: mwink Views: 737
Date Added: 15 Nov 2007

This sample illustrates the execution of rulesets against a collection of objects.  This makes use of the techniques outlined in the Windows SDK documentation filed in the Processing Collections. 

This Windows Forms application will execute a ruleset against either an array of objects, or against a collection of them.  For additional information on how this sample works, please see my blog post on the topic.

Steps to get the application to work:

  • Download and extract the RulesWithCollectionSample
  • Open the RulesWithCollectionSample solution and build it
  • Download and extract the External RuleSet Toolkit, and create a rules database.
  • Import the rules from the .rules file in the RulesWithCollectionSample folder (you will need to point it to the assemblies of the RulesWithCollectionSample solution that you just built)
  • Save this to the rules database
  • Make sure the app.config file points to the right rules database.
  • Hit F5 to run, and you will be able to add numbers in one of two ways (via an array or a collection of objects)

Filed under: , ,
Comments
No comments exist for this file.

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add

Copyright © 2007 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us