Ok, I tried that....if I have:
Dim AF_HEADCollection As New AF_HEADCollection
CheckCount(AF_HEADCollection, 1)
I get a compile error:
"Option Strict On disallows implicit conversions from 'Domain.CollectionClasses.AF_HEADCollection' to 'SD.LLBLGen.Pro.ORMSupportClasses.IEntityCollection2'."
Where:
Public Class AF_HEADCollection
Inherits EntityCollectionBase(Of AF_HEADEntity)
EntityCollectionBase Inherits CollectionCore(Of TEntity)
Public Class AF_HEADEntity
Inherits CommonEntityBase
AF_HEADCollection.Count is implemented in ORMSupportClasses.CollectionCore(Of T)
I tried:
Public Sub CheckCount2(ByVal collection As EntityCollectionBase(Of CommonEntityBase), ByVal expectedCount As Integer)
End Sub
But get the error:
Value of type 'Domain.CollectionClasses.AF_HEADCollection' cannot be converted to 'SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase(Of Domain.EntityClasses.CommonEntityBase)'.
Seems like this should be an easy thing to do.....