[]
Configures the context to connect to a CSV database.
public static DbContextOptionsBuilder UseCSV(this DbContextOptionsBuilder optionsBuilder, string connectionString, Action<CSVDbContextOptionsBuilder> optionsAction = null)
Public Shared Function UseCSV(optionsBuilder As DbContextOptionsBuilder, connectionString As String, Optional optionsAction As Action(Of CSVDbContextOptionsBuilder) = Nothing) As DbContextOptionsBuilder
| Type | Name | Description |
|---|---|---|
| DbContextOptionsBuilder | optionsBuilder | The builder being used to configure the context. |
| string | connectionString | The connection string of the database to connect to. |
| Action<CSVDbContextOptionsBuilder> | optionsAction | An optional action to allow additional CSV specific configuration. |
| Type | Description |
|---|---|
| DbContextOptionsBuilder | The options builder so that further configuration can be chained. |
Configures the context to connect to a CSV database.
public static DbContextOptionsBuilder UseCSV(this DbContextOptionsBuilder optionsBuilder, DbConnection connection, Action<CSVDbContextOptionsBuilder> optionsAction = null)
Public Shared Function UseCSV(optionsBuilder As DbContextOptionsBuilder, connection As DbConnection, Optional optionsAction As Action(Of CSVDbContextOptionsBuilder) = Nothing) As DbContextOptionsBuilder
| Type | Name | Description |
|---|---|---|
| DbContextOptionsBuilder | optionsBuilder | The builder being used to configure the context. |
| DbConnection | connection | An existing DbConnection to be used to connect to the database. If the connection is in the open state then EF will not open or close the connection. If the connection is in the closed state then EF will open and close the connection as needed. |
| Action<CSVDbContextOptionsBuilder> | optionsAction | An optional action to allow additional CSV specific configuration. |
| Type | Description |
|---|---|
| DbContextOptionsBuilder | The options builder so that further configuration can be chained. |
Configures the context to connect to a CSV database.
public static DbContextOptionsBuilder<TContext> UseCSV<TContext>(this DbContextOptionsBuilder<TContext> optionsBuilder, string connectionString, Action<CSVDbContextOptionsBuilder> optionsAction = null) where TContext : DbContext
Public Shared Function UseCSV(Of TContext As DbContext)(optionsBuilder As DbContextOptionsBuilder(Of TContext), connectionString As String, Optional optionsAction As Action(Of CSVDbContextOptionsBuilder) = Nothing) As DbContextOptionsBuilder(Of TContext)
| Type | Name | Description |
|---|---|---|
| DbContextOptionsBuilder<TContext> | optionsBuilder | The builder being used to configure the context. |
| string | connectionString | The connection string of the database to connect to. |
| Action<CSVDbContextOptionsBuilder> | optionsAction | An optional action to allow additional CSV specific configuration. |
| Type | Description |
|---|---|
| DbContextOptionsBuilder<TContext> | The options builder so that further configuration can be chained. |
| Name | Description |
|---|---|
| TContext | The type of context to be configured. |
Configures the context to connect to a CSV database.
public static DbContextOptionsBuilder<TContext> UseCSV<TContext>(this DbContextOptionsBuilder<TContext> optionsBuilder, DbConnection connection, Action<CSVDbContextOptionsBuilder> optionsAction = null) where TContext : DbContext
Public Shared Function UseCSV(Of TContext As DbContext)(optionsBuilder As DbContextOptionsBuilder(Of TContext), connection As DbConnection, Optional optionsAction As Action(Of CSVDbContextOptionsBuilder) = Nothing) As DbContextOptionsBuilder(Of TContext)
| Type | Name | Description |
|---|---|---|
| DbContextOptionsBuilder<TContext> | optionsBuilder | The builder being used to configure the context. |
| DbConnection | connection | An existing DbConnection to be used to connect to the database. If the connection is in the open state then EF will not open or close the connection. If the connection is in the closed state then EF will open and close the connection as needed. |
| Action<CSVDbContextOptionsBuilder> | optionsAction | An optional action to allow additional CSV specific configuration. |
| Type | Description |
|---|---|
| DbContextOptionsBuilder<TContext> | The options builder so that further configuration can be chained. |
| Name | Description |
|---|---|
| TContext | The type of context to be configured. |