Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CheckRules in 3.5
Message
De
02/06/2008 11:50:11
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
CheckRules in 3.5
Divers
Thread ID:
01321026
Message ID:
01321026
Vues:
77
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
Fil
Voir

Click here to load this message in the networking platform