vb.net中的public ApplicationDbContext():base(“ ApplicationServices”,throwIfV1Schema:false)等值

时间:2018-07-03 09:04:59

标签: vb.net c#-to-vb.net

不太清楚如何在VB.NET中实现此C#行

public ApplicationDbContext() : base("ApplicationServices", throwIfV1Schema:false)

1 个答案:

答案 0 :(得分:0)

您可以使用这样的类来完成此操作:

Public Class ApplicationDbContext
    Inherits IdentityDbContext(Of ApplicationUser)

    Public Sub New()
        MyBase.New("ApplicationServices", throwIfV1Schema:=False)
    End Sub

End Class