Hi Otis,
I am explaning things from start. I have followed the same procedure suggested by Walaa. I have used LLBLgen files of my Database project and then used these LLBLgen Files in New LLBLGen 5.2 designer to generate the source code in a seperate folder.
I didnt correct any info messages and Warning during the time of code generation.
Then i have changed all the DLL's in my project and used newly created source code.
When i starting building up my code it was throwing error related to this entity [Ordercreatedbyusername]. It was missing in entity files as it was not generated by LLBLgen 5.2 Designer. Therefore i copied everything related to this entity from older code to resolve build errors.
Code is now building up fine but my unit test cases are getting failed throwing this exception:
Result Message:
Test method Vestas.NAcelle.VDD.BLL.MSTest.ProcessStepManagerBugTest.SupplierAndItemSearchBug threw exception:
SD.LLBLGen.Pro.ORMSupportClasses.ORMValueTypeMismatchException: The value abtya is of type 'System.String' while the field is of type 'System.Nullable`1[System.DateTime]'
When i started debugging my code, problem was lying in this piece of code:
Public Shared Function GetCreatedByUserName(ByVal vui As String, daa As DataAccessAdapter) As String
Dim bucket As New RelationPredicateBucket()
bucket.PredicateExpression.AddWithAnd(VuiFields.Vui = vui)
bucket.PredicateExpression.AddWithAnd(VuiFields.DeletedTs = DBNull.Value)
Dim ec As New EntityCollection(Of VuiEntity)
daa.FetchEntityCollection(ec, bucket, 1)
If ec.Any() Then
Return ec(0).CreatedByUserName
Else
Return Nothing
End If
End Function
Public Overridable Property CreatedByUserName As System.String
Get
Return CType(GetValue(CInt(VuiFieldIndex.CreatedByUserName), True), System.String)
End Get
Set
SetValue(CInt(VuiFieldIndex.CreatedByUserName), value)
End Set
End Property
Code is not able to set the value of Createdbyusername i.e "abtya".
And yes we RDP to connect to an on premise server. And i have just installed the LLBLgen version from its website itself and then i used its licence file. Same case is there with my colleagues who are using LLBLgen 5.2 version.
I hope this time i am able to clarify all your doubts. Please do let me know if you need anything else.