Class NpgsqlCodeGenerator
The default code generator for Npgsql.
Inheritance
object
NpgsqlCodeGenerator
Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Scaffolding.Internal
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public class NpgsqlCodeGenerator : ProviderCodeGenerator
Constructors
| Improve this Doc View SourceNpgsqlCodeGenerator(ProviderCodeGeneratorDependencies)
Constructs an instance of the NpgsqlCodeGenerator class.
Declaration
public NpgsqlCodeGenerator(ProviderCodeGeneratorDependencies dependencies)
Parameters
Type | Name | Description |
---|---|---|
ProviderCodeGeneratorDependencies | dependencies | The dependencies. |
Methods
| Improve this Doc View SourceGenerateUseProvider(string, MethodCallCodeFragment?)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
Declaration
public override MethodCallCodeFragment GenerateUseProvider(string connectionString, MethodCallCodeFragment? providerOptions)
Parameters
Type | Name | Description |
---|---|---|
string | connectionString | |
MethodCallCodeFragment? | providerOptions |
Returns
Type | Description |
---|---|
MethodCallCodeFragment |