Skip to content

BusinessBase as Criteria #3707

Feb 23, 2024 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

The pattern you describe is correct. I'm not sure how the example you cited relates to this topic. Here's a partial example of a criteria class we use when adding serial numbers to an inventory item. Note that there is no data portal functionality of this class. It is used strictly to validate user input. The WinForms UI has a PropertyChanged event handler that checks validitiy of the critieria. Leading to a line like AddSerialBindingSource.DataSource = DataPortal.Create<ItemSerial>(critieria); The criteria parameter is the instance of this class.

using Csla;
using System;
using Csla.Rules.CommonRules;
using Csla.Rules;

namespace MyNamespace
{
    [Serializable]
    public class AddSeria…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@Chicagoan2016
Comment options

@hurcane
Comment options

Answer selected by Chicagoan2016
@Chicagoan2016
Comment options

@hurcane
Comment options

@Chicagoan2016
Comment options

@hurcane
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants