0
        model.RegisterContext(typeof(NorthwindDataContext), new ContextConfiguration()
    {
        ScaffoldAllTables = true,
        MetadataProviderFactory = (type => new DefaultTypeDescriptionProvider(type, new AssociatedMetadataTypeTypeDescriptionProvider(type)))
    });

In particular the MetadataProviderFactory Line... I can't quite seem to figure out how it should look in VB...

animuson
  • 53,861
  • 28
  • 137
  • 147
Kevin LaBranche
  • 20,908
  • 5
  • 52
  • 76

3 Answers3

1
MetadataProviderFactory = Function(type) new DefaultTypeDescriptionProvider(
    type, new AssociatedMetadataTypeTypeDescriptionProvider(type))
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
Henri
  • 5,065
  • 23
  • 24
1
MetadataProviderFactory = Function (type) New DefaultTypeDescriptionProvider(
    type, New AssociatedMetadataTypeTypeDescriptionProvider(type))
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
Ben M
  • 22,262
  • 3
  • 67
  • 71
1

I believe that you're looking for something like this:

model.RegisterContext(GetType(NorthwindDataContext), 
    New ContextConfiguration() With
    {
        .ScaffoldAllTables = True,
        .MetadataProviderFactory = Function(type) _
            New DefaultTypeDescriptionProvider(
                type, 
                New AssociatedMetadataTypeTypeDescriptionProvider(type))
    })
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
Dustin Campbell
  • 9,747
  • 2
  • 31
  • 32