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

Model definition in Visual Basic

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mgs
Top achievements
Rank 1
mgs asked on 20 Jul 2012, 09:24 AM
How can the following code

.Model(model => {
                model.Id(p => p.OrderID);
                model.Field(p => p.OrderID).Editable(false);
            })

be translated to Visual Basic?

Michael G. Schneider

1 Answer, 1 is accepted

Sort by
0
mgs
Top achievements
Rank 1
answered on 20 Jul 2012, 09:58 AM
I played with Code Converter and finally succeeded. It is...

.Model(Function(model)
    model.Id(Function(p) p.OrderID)
    model.Field(Function(p) p.OrderID).Editable(False)
End Function)

Code Converter had an additional "Do" in the first line. Probably this is not correct.

Michael G. Schneider
Tags
General Discussions
Asked by
mgs
Top achievements
Rank 1
Answers by
mgs
Top achievements
Rank 1
Share this question
or