model.RegisterContext(typeof(NorthwindDataContext), new ContextConfiguration()
{
ScaffoldAllTables = true,
MetadataProviderFactory = (type => new DefaultTypeDescriptionProvider(type, new AssociatedMetadataTypeTypeDescriptionProvider(type)))
});
特别是MetadataProviderFactory线......我不能完全似乎弄清楚它应该如何看在VB ...将C#动态数据上下文注册码转换为VB?