Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating interfaces when return type is entity list
Message
De
31/03/2011 10:10:01
 
 
À
31/03/2011 09:48:41
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01505681
Message ID:
01505703
Vues:
45
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform