edmx une fonction peut-elle retourner un boolean ?
Bonsoir,
La fonction suivante peut-elle me retourner un boolean ?
Code:
1 2 3 4 5 6 7
| <Custom()> _
Public Function SiSecteurContientCode(ByVal myRevId As Integer, ByVal myCodeId As Integer) As Boolean
Dim mesCodes As IEnumerable(Of SecteurTbl) = From sect In Me.Context.SecteurTbl _
Where sect.RevendeurTbl.RevID = myRevId And sect.CodePostalTbl.CodePostalID = myCodeId _
Select sect
Return mesCodes.Count <> 0
End Function |
A la compilation j'ai une erreur:
Citation:
Parameter 'myRevId' of domain method 'SiSecteurContientCode' must be an entity type exposed by the DomainService, either directly via a query operation, or inderectly via an included association
Quelqu'un sait-il de quoi il s'agit ?