ProviderCodeGenerator.GenerateUseProvider Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
| GenerateUseProvider(String) |
Przestarzałe.
Generuje fragment kodu, taki jak |
| GenerateUseProvider(String, MethodCallCodeFragment) |
Generuje fragment kodu, taki jak |
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
Przestroga
Use the overload that takes provider options instead.
Generuje fragment kodu, taki jak .UseSqlServer("Database=Foo") ten, którego można użyć w OnConfiguring(DbContextOptionsBuilder) metodzie wygenerowanego obiektu DbContext.
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);
public virtual Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateUseProvider (string connectionString);
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
abstract member GenerateUseProvider : string -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
override this.GenerateUseProvider : string -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public MustOverride Function GenerateUseProvider (connectionString As String) As MethodCallCodeFragment
Public Overridable Function GenerateUseProvider (connectionString As String) As MethodCallCodeFragment
Parametry
- connectionString
- String
Parametry połączenia do uwzględnienia w fragmentze 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
Generuje fragment kodu, taki jak .UseSqlServer("Database=Foo") ten, którego można użyć w OnConfiguring(DbContextOptionsBuilder) metodzie wygenerowanego obiektu DbContext.
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);
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
override this.GenerateUseProvider : string * Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
abstract member GenerateUseProvider : string * Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Overridable Function GenerateUseProvider (connectionString As String, providerOptions As MethodCallCodeFragment) As MethodCallCodeFragment
Public MustOverride Function GenerateUseProvider (connectionString As String, providerOptions As MethodCallCodeFragment) As MethodCallCodeFragment
Parametry
- connectionString
- String
Parametry połączenia do uwzględnienia w fragmentze kodu.
- providerOptions
- MethodCallCodeFragment
Łańcuch metod używany do konfigurowania opcji dostawcy.
Zwraca
Fragment kodu.