General information
Category:
The Mere Mortals .NET Framework
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only