General information
Category:
The Mere Mortals .NET Framework
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
Previous
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