After reviewing all the concurrency-related threads, I took a stab at creating a class that implements the IConcurrencyPredicateFactory interface (posted below). The issue is that VS2005 is telling me that I must implement the CreatePredicate() method, but it's in there! The method signature looks identical to what is required (I even tried copying the signature from the error message to be sure). I'm sure it's something stupid, but if any VB guys have dealt with this I could use some help. Thanks!
The code:
Imports SD.LLBLGen.Pro.ORMSupportClasses
<Serializable()> _
Public Class ConcurrencyPredicateFactory
Implements IConcurrencyPredicateFactory
Private mTimestampField As EntityField
'constructor
Public Sub ConcurrencyPredicateFactory(ByVal timestampField As IEntityField)
mTimestampField = CType(timestampField, EntityField)
End Sub
Public Function CreatePredicate(ByVal predicateTypeToCreate As ConcurrencyPredicateType, ByVal containingEntity As Object) As IPredicateExpression
Dim toReturn As IPredicateExpression = New PredicateExpression()
Dim entity As EntityBase = CType(containingEntity, EntityBase)
Select Case predicateTypeToCreate
Case ConcurrencyPredicateType.Save
toReturn.Add(mTimestampField = entity.Fields("Timestamp").DbValue)
End Select
Return toReturn
End Function
End Class
The Error:
Class 'ConcurrencyPredicateFactory' must implement 'Function CreatePredicate(predicateTypeToCreate As ConcurrencyPredicateType, containingEntity As Object) As IPredicateExpression' for interface 'SD.LLBLGen.Pro.ORMSupportClasses.IConcurrencyPredicateFactory'
The Environment: VS2005, LLBLGen Pro v2.0 (latest build), Self Servicing