Page 1 of 1

OnLoaded Method is not called

Posted: Thu 12 Feb 2009 13:51
by larrydhunt
I can't get the OnLoaded method to be called in a partial public class; however the OnCreated is being called. I am using the sample code:
C:\Program Files\Devart\dotConnect\Linq\Samples\MySQL\VBasicLinqDemo.sln

I have added the following custom class:
C:\Program Files\Devart\dotConnect\Linq\Samples\MySQL\VB\Queries\CrmDataContextCustom.vb

which contains this code:

Code: Select all

Namespace CrmDataContext
    Partial Public Class Company
        Private Sub OnCreated()
            ' This is called.
        End Sub

        Private Sub OnLoaded()
            ' This is never called.
        End Sub
    End Class
End Namespace
Any suggestions?

Thanks,
Larry

Posted: Tue 17 Feb 2009 10:50
by AndreyR
This problem is fixed in the upcoming build.

Posted: Tue 17 Feb 2009 10:51
by AndreyR
This problem is fixed in the upcoming build.