OnLoaded Method is not called

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
larrydhunt
Posts: 10
Joined: Tue 20 Jan 2009 21:40

OnLoaded Method is not called

Post by larrydhunt » Thu 12 Feb 2009 13:51

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

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 17 Feb 2009 10:50

This problem is fixed in the upcoming build.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 17 Feb 2009 10:51

This problem is fixed in the upcoming build.

Post Reply