Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Stable is MM3.5?
Message
De
05/02/2009 10:19:59
 
 
À
26/01/2009 15:59:35
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Application:
Desktop
Divers
Thread ID:
01376162
Message ID:
01379495
Vues:
45
Tim,
Sorry It took so long to get back to you.
I'll use the checkrules here as an example. Our problem was that we where putting our checkrules code in the
Public Overrides Function CheckRulesHook(ByVal ds As DataSet, ByVal tableName As String) As Boolean
the mmForms where all calling
the enity version.
Public Overrides Function CheckRules(Of EntityType As OakLeaf.MM.Main.Business.mmBusinessEntity)(ByVal entityList As OakLeaf.MM.Main.Collections.mmBindingList(Of EntityType)) As OakLeaf.MM.Main.Business.mmSaveDataResult

our soloution was to use this code in the entity overload of check rules

Dim dsHost As mmBusinessObject = CType(Me.HostObject, mmBusinessObject)
Return Me.CheckRulesHook(dsHost.GetCurrentDataSet, dsHost.TableName)

This may have been fixed in a later release so that the mmBusinessform would check to see if the form was entity centric and call the correct version of the overload , I'm not sure.

This was only an issue for us on two or three BO's that where abstracted between projects where we where using dataset. On this project thier is a differnt Database for each lockbox but 90% of the tabes and structure where the same. on that 90% we put the BO's inb a base class lib and use the entities. The 10% that differed between Databases we created a business project for each and use Datasets where ever it is accessed.

Thanks
Brian Grant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform