ProviderCodeGenerator.GenerateUseProvider Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
GenerateUseProvider(String) |
Obsoleti.
Genera un frammento di codice come |
GenerateUseProvider(String, MethodCallCodeFragment) |
Genera un frammento di codice come |
GenerateUseProvider(String)
- Origine:
- ProviderCodeGenerator.cs
- Origine:
- ProviderCodeGenerator.cs
- Origine:
- ProviderCodeGenerator.cs
- Origine:
- ProviderCodeGenerator.cs
- Origine:
- ProviderCodeGenerator.cs
Attenzione
Use the overload that takes provider options instead.
Genera un frammento di codice come .UseSqlServer("Database=Foo")
il quale può essere usato nel OnConfiguring(DbContextOptionsBuilder) metodo del dbContext generato.
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
Parametri
- connectionString
- String
Stringa di connessione da includere nel frammento di codice.
Restituisce
Frammento di codice.
Implementazioni
- Attributi
Si applica a
GenerateUseProvider(String, MethodCallCodeFragment)
- Origine:
- ProviderCodeGenerator.cs
- Origine:
- ProviderCodeGenerator.cs
- Origine:
- ProviderCodeGenerator.cs
- Origine:
- ProviderCodeGenerator.cs
- Origine:
- ProviderCodeGenerator.cs
- Origine:
- ProviderCodeGenerator.cs
- Origine:
- ProviderCodeGenerator.cs
- Origine:
- ProviderCodeGenerator.cs
Genera un frammento di codice come .UseSqlServer("Database=Foo")
il quale può essere usato nel OnConfiguring(DbContextOptionsBuilder) metodo del dbContext generato.
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
Parametri
- connectionString
- String
Stringa di connessione da includere nel frammento di codice.
- providerOptions
- MethodCallCodeFragment
Catena di metodi usata per configurare le opzioni del provider.
Restituisce
Frammento di codice.