Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将其转换为:
public virtual IDbSet DbSet() where T : class
对此
Public Overridable Function DbSet() As IDbSet(Of T As Class)
但它不编译。')' 预期为 As(在“As Class”中)
请告诉我我做错了什么。
我正在尝试让 EF Code First 在 VB 中工作。
正确的语法是:
public virtual IDbSet<T> DbSet() where T : class
和
Public Overridable Function DbSet(Of T As Class)() As IDbSet(Of T)