Język

ProviderCodeGenerator.GenerateUseProvider Metoda

Definicja

Przeciążenia

Nazwisko Opis
GenerateUseProvider(String)
Przestarzałe.

Generuje fragment kodu, na .UseSqlServer("Database=Foo") przykład, którego można użyć w OnConfiguring(DbContextOptionsBuilder) metodzie wygenerowanego obiektu DbContext.

GenerateUseProvider(String, MethodCallCodeFragment)

Generuje fragment kodu, na .UseSqlServer("Database=Foo") przykład, którego można użyć w OnConfiguring(DbContextOptionsBuilder) metodzie wygenerowanego obiektu DbContext.

GenerateUseProvider(String)

Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs

Uwaga

Use the overload that takes provider options instead.

Generuje fragment kodu, na .UseSqlServer("Database=Foo") przykład, którego można użyć w OnConfiguring(DbContextOptionsBuilder) metodzie wygenerowanego obiektu DbContext.

public virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateUseProvider(string connectionString);
public abstract Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateUseProvider(string connectionString);
[System.Obsolete("Use the overload that takes provider options instead.")]
public virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateUseProvider(string connectionString);
abstract member GenerateUseProvider : string -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateUseProvider : string -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
abstract member GenerateUseProvider : string -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
[<System.Obsolete("Use the overload that takes provider options instead.")>]
abstract member GenerateUseProvider : string -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateUseProvider : string -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Overridable Function GenerateUseProvider (connectionString As String) As MethodCallCodeFragment
Public MustOverride Function GenerateUseProvider (connectionString As String) As MethodCallCodeFragment

Parametry

connectionString
String

Connection string do uwzględnienia w fragmentie kodu.

Zwraca

Fragment kodu.

Implementuje

Atrybuty

Dotyczy

GenerateUseProvider(String, MethodCallCodeFragment)

Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs
Źródło:
ProviderCodeGenerator.cs

Generuje fragment kodu, na .UseSqlServer("Database=Foo") przykład, którego można użyć w OnConfiguring(DbContextOptionsBuilder) metodzie wygenerowanego obiektu DbContext.

public abstract Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateUseProvider(string connectionString, Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment? providerOptions);
public virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateUseProvider(string connectionString, Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment providerOptions);
public abstract Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateUseProvider(string connectionString, Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment providerOptions);
abstract member GenerateUseProvider : string * Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
abstract member GenerateUseProvider : string * Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateUseProvider : string * Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public MustOverride Function GenerateUseProvider (connectionString As String, providerOptions As MethodCallCodeFragment) As MethodCallCodeFragment
Public Overridable Function GenerateUseProvider (connectionString As String, providerOptions As MethodCallCodeFragment) As MethodCallCodeFragment

Parametry

connectionString
String

Connection string do uwzględnienia w fragmentie kodu.

providerOptions
MethodCallCodeFragment

Łańcuch metod używany do konfigurowania opcji dostawcy.

Zwraca

Fragment kodu.

Implementuje

Dotyczy