共用方式為


IdentityUserContext<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.OnModelCreating 方法

定義

設定身分識別架構所需的架構。

protected:
 override void OnModelCreating(Microsoft::EntityFrameworkCore::ModelBuilder ^ builder);
protected override void OnModelCreating (Microsoft.EntityFrameworkCore.ModelBuilder builder);
override this.OnModelCreating : Microsoft.EntityFrameworkCore.ModelBuilder -> unit
Protected Overrides Sub OnModelCreating (builder As ModelBuilder)

參數

builder
ModelBuilder

用來建構此內容的模型建立器。

適用於