Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating interfaces when return type is entity list
Message
From
31/03/2011 10:10:01
 
 
To
31/03/2011 09:48:41
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01505681
Message ID:
01505703
Views:
44
Posting code on this would make it even more confusing. Heres the basic problem again. The problem isnt code specific.
Each of the 4 BOs (all of which are in different business projects and have slightly different data/entities)
Have a Get EntityListbyDLN method that returns and entite list of DataCaptureEntity (the entity is specific to that businness project).

Heres an example:

Public Function GetEntityListbyDLN(ByVal DLN As Int64) As mmBindingList(Of DataCaptureReturnEntity)
Return Me.EntityList
End Function
This same method call exists in all four business projects DataCap business object. Each one of the DataCaptureReturnEntity in mmBindingList is specific to its DataCap business object.
Follow so far?

Each of the 4 BO’s implement and interface from a baselib project
IdataCap . I want a method signature on that interface to be implemented on all 4 BO’s for the GetEntityListbyDLN function.
So it would looks something like this

Public interface IDataCap
Function GetEntityListbyDLN(ByVal DLN As Int64) As mmBindingList(Of “SOMETHING”)
End Interface

The problem is that no matter what I try using in place of “SOMETHING”
I cant get it to work on the BO’s end.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform