Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CheckRules in 3.5
Message
From
02/06/2008 11:50:11
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
CheckRules in 3.5
Miscellaneous
Thread ID:
01321026
Message ID:
01321026
Views:
76
Kevin,

It used to check my business rules in 2.4 by using the following:

mmSaveDataResult rulesResult = this.oOddDaysRequest.Rules.CheckRules(oOddDaysRequest.DataSet, oOddDaysRequest.TableName, true);

For some reason this no longer works in 3.5. The method exists and I don’t get a compile error, but it appears the CheckRulesHook has changed from

public override bool CheckRulesHook(DataSet ds, string tableName)

to

public override bool CheckRulesHook(mmBindingList entityList)

I’m not that familiar with the entity type parameters, but I got this to work by using the following:

oOddDaysRequest.CreateEntityList();

mmSaveDataResult rulesResult = this.oOddDaysRequest.Rules.CheckRules(oOddDaysRequest.EntityList);

Is this the correct syntax?

Is the DataSet appraoch supposed to still work?

Is this a move away from DataSets and towards entities?

Thanks,

Al
Next
Reply
Map
View

Click here to load this message in the networking platform