public ApplicationDbContext() : base("ApplicationServices", throwIfV1Schema:false) 等价于 vb.net
public ApplicationDbContext() : base("ApplicationServices", throwIfV1Schema:false) equivelence in vb.net
不太确定如何在 VB.NET
中实现此 C# 行
public ApplicationDbContext() : base("ApplicationServices", throwIfV1Schema:false)
你可以用这样的 class 来完成:
Public Class ApplicationDbContext
Inherits IdentityDbContext(Of ApplicationUser)
Public Sub New()
MyBase.New("ApplicationServices", throwIfV1Schema:=False)
End Sub
End Class
不太确定如何在 VB.NET
中实现此 C# 行public ApplicationDbContext() : base("ApplicationServices", throwIfV1Schema:false)
你可以用这样的 class 来完成:
Public Class ApplicationDbContext
Inherits IdentityDbContext(Of ApplicationUser)
Public Sub New()
MyBase.New("ApplicationServices", throwIfV1Schema:=False)
End Sub
End Class