DbContextInfo.OnModelCreating 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在 OnModelCreating 之後,DbModelBuilder 上執行的一個動作已在上下文中執行。
public virtual Action<System.Data.Entity.DbModelBuilder> OnModelCreating { get; set; }
member this.OnModelCreating : Action<System.Data.Entity.DbModelBuilder> with get, set
Public Overridable Property OnModelCreating As Action(Of DbModelBuilder)