Model definition in Visual Basic

2 posts, 0 answers
  1. mgs
    mgs avatar
    163 posts
    Member since:
    Jan 2011

    Posted 20 Jul 2012 Link to this post

    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
  2. mgs
    mgs avatar
    163 posts
    Member since:
    Jan 2011

    Posted 20 Jul 2012 Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top