Hi all,
I got projection to work with the following code:
Protected Overridable Sub Projector(Of TDTO As {BaseDTO, New}, _
TEntity As {EntityBase, IEntity})(ByVal Origin As EntityCollectionBase(Of TEntity), _
ByRef Destination As BaseDTOCollection(Of TDTO), _
ByVal PropertyProjectors As List(Of IEntityPropertyProjector))
Dim _EntityView As New EntityView(Of TEntity)(Origin)
Dim _Projector As New DataProjectorToCustomClass(Of TDTO)(Destination)
_EntityView.CreateProjection(PropertyProjectors, _Projector)
End Sub
Now my question is - if I have an invalid property projector setup, is it possible to throw an error? It seems right now, it just swallows it? This makes testing hard since projections are untyped.
Thanks!