This is a migrated thread and some comments may be shown as answers.

error converting lambda

2 Answers 48 Views
Code Converter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
luca vignando
Top achievements
Rank 1
luca vignando asked on 06 Dec 2012, 12:50 PM
Hello, I tried to convert
ctiveRecordStarter.ModelsCreated+=delegate(ActiveRecordModelCollection models, IConfigurationSource source)
{
    foreach (ActiveRecordModel model in models)
    {
        if(model.Type == typeof(User))
        {
            model.ActiveRecordAtt.Table = "MyUsers";
        }
    }
};

in Vb.Net.
The conversion "works" but the resulting code is wrong.

2 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 11 Dec 2012, 07:39 AM
Hello luca,

Could you please try using the following code snippet and let me know if it helps you:
AddHandler ctiveRecordStarter.ModelsCreated, AddressOf Me. ModelsCreated_EventHandler
 
Protected Sub ModelsCreated_EventHandler(ByVal models As ActiveRecordModelCollection, ByVal source As IConfigurationSource)
End Sub

Looking forward for your reply.

All the best,
Radoslav
the Telerik team

Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

0
luca vignando
Top achievements
Rank 1
answered on 14 Dec 2012, 12:06 AM
Hello,

I thank you, your solution works.

Regards.

Luca
Tags
Code Converter
Asked by
luca vignando
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
luca vignando
Top achievements
Rank 1
Share this question
or