what is the VB.NET equivalent of Me.Mapper function

Jul 14, 2015 at 5:34 AM
I want to implement the demo project in VB.NET
I was unable to create the following function on VB
[RegisterView]
    public class SalesInvoiceView : View<SalesInvoice>
    {
        public SalesInvoiceView()
        {
            this.Name = "SalesInvoice";
            this.Description = "A primary view for SalesInvoices";
            this.isPrimaryList = true;
            this.isActive = true;
            this.BackgroundIndexing = true;
            this.Version = 1;

            this.Schema = typeof(SalesInvoiceViewRowSchema);

            this.Mapper = (api, docid, doc) =>
            {
                api.EmitObject(docid, doc);
            };
        }
    }
Mainly the following line:
this.Mapper = (api, docid, doc) =>
            {
                api.EmitObject(docid, doc);
            };
Jul 14, 2015 at 5:47 AM
I believe it is (not a vb.net guy anymore)
Mapper = Sub(api, docid, doc) api.EmitObject(docid, doc)
Jul 14, 2015 at 7:43 AM
thanks for your quick response, very impressive.
unfortunately this does not work.
the error is that the function
api.EmitObject(docid, doc)
does not return a value and the mapper is looking for a return value