Information générale
Catégorie:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement