diff --git a/product_docs/docs/net_connector/8.0.5.1/04_installing_and_configuring_the_net_connector.mdx b/product_docs/docs/net_connector/8.0.5.1/04_installing_and_configuring_the_net_connector.mdx index cbc235e744c..32b80812cf3 100644 --- a/product_docs/docs/net_connector/8.0.5.1/04_installing_and_configuring_the_net_connector.mdx +++ b/product_docs/docs/net_connector/8.0.5.1/04_installing_and_configuring_the_net_connector.mdx @@ -86,8 +86,6 @@ For information about configuring the .NET Connector in each environment, see: - **Referencing the Library Files.** [General configuration information](#referencing_the_library_files) applicable to all components. - **.NET 8.0** Instructions for configuring for use with [.NET 8.0](#setup_8_0). -- **.NET 7.0** Instructions for configuring for use with [.NET 7.0](#setup_7_0). -- **.NET 6.0** Instructions for configuring for use with [.NET 6.0](#setup_6_0). - **.NET Framework 4.7.2** Instructions for configuring for use with [.NET framework 4.7.2](#net-framework-472). - **.NET Framework 4.8** Instructions for configuring for use with [.NET Framework 4.8](#net-framework-48). - **.NET Framework 4.8.1** Instructions for configuring for use with [.NET Framework 4.8.1](#net-framework-481). @@ -139,34 +137,6 @@ You must add the following dependencies to your project: Depending upon the type of application you use, you may be required to import the namespace into the source code. See [Referencing the library files](#referencing_the_library_files) for this and other information about referencing library files. - - -##### .NET 7.0 - -For .NET 7.0, the data provider installation path is `C:\Program Files\edb\dotnet\net7.0\`. - -You must add the following dependencies to your project: - -- `EnterpriseDB.EDBClient.dll` - -Depending on your application type, you might need to import the namespace into the source code. See [Referencing the library files](#referencing_the_library_files) for this and the other information about referencing the library files. - - - -##### .NET 6.0 - -For .NET 6.0, the data provider installation path is: - - `C:\Program Files\edb\dotnet\net6.0\` - -You must add the following dependencies to your project: - -- `EnterpriseDB.EDBClient.dll` - -Depending on your application type, you might need to import the namespace into the source code. See [Referencing the library files](#referencing_the_library_files) for this and the other information about referencing library files. - - - ##### .NET Framework 4.7.2 For .NET Framework 4.7.2, the data provider installation path is: diff --git a/product_docs/docs/net_connector/8.0.5.1/12_using_advanced_queueing.mdx b/product_docs/docs/net_connector/8.0.5.1/12_using_advanced_queueing.mdx index 0be613c3955..a303b73cc25 100644 --- a/product_docs/docs/net_connector/8.0.5.1/12_using_advanced_queueing.mdx +++ b/product_docs/docs/net_connector/8.0.5.1/12_using_advanced_queueing.mdx @@ -78,7 +78,7 @@ The following code shows using the `queue.Enqueue` method. !!! Note This code creates the message and serializes it. This is example code and doesn't compile if copied as it is. You must serialize the message as XML. -```Text +```csharp using EnterpriseDB.EDBClient; using System; using System.Collections.Generic; @@ -201,7 +201,7 @@ To dequeue a message on your .NET application, you must: !!! Note The following code creates the message and serializes it. This is example code and doesn't compile if copied as it is. You must serialize the message as XML. -```Text +```csharp using System; using System.Collections.Generic; using System.Linq; diff --git a/product_docs/docs/net_connector/8.0.5.1/15_using_object_types.mdx b/product_docs/docs/net_connector/8.0.5.1/15_using_object_types.mdx index c57c5ba4713..d44f575cf7a 100644 --- a/product_docs/docs/net_connector/8.0.5.1/15_using_object_types.mdx +++ b/product_docs/docs/net_connector/8.0.5.1/15_using_object_types.mdx @@ -13,7 +13,7 @@ Create the basic object type with the `CREATE TYPE AS OBJECT` command. Optional To use an object type, you must first create the object type in the EDB Postgres Advanced Server database. Object type `addr_object_type` defines the attributes of an address: -```text +```sql CREATE OR REPLACE TYPE addr_object_type AS OBJECT ( street VARCHAR2(30), @@ -25,7 +25,7 @@ CREATE OR REPLACE TYPE addr_object_type AS OBJECT Object type `emp_obj_typ` defines the attributes of an employee. One of these attributes is object type `ADDR_OBJECT_TYPE`, as previously described. The object type body contains a method that displays the employee information: -```text +```sql CREATE OR REPLACE TYPE emp_obj_typ AS OBJECT ( empno NUMBER(4), @@ -49,7 +49,7 @@ END; This example is a complete .NET program that uses these user-defined object types: -```text +```csharp using EnterpriseDB.EDBClient; using System.Data.Common; namespace TypesTest @@ -124,7 +124,7 @@ public class addr_object_type The following .NET types are defined to map to the types in EDB Postgres Advanced Server: -```text +```csharp public class addr_object_type { public string? street; @@ -143,20 +143,20 @@ public class emp_obj_typ A call to `EDBDataSourceBuilder.MapComposite` maps the .NET type to the EDB Postgres Advanced Server types: -```text +```csharp dataSourceBuilder.MapComposite("enterprisedb.addr_object_type"); dataSourceBuilder.MapComposite("enterprisedb.emp_obj_typ"); ``` A call to `EDBCommandBuilder.DeriveParameters()` gets parameter information for a stored procedure. This allows you to just set the parameter values and call the stored procedure: -```text +```csharp EDBCommandBuilder.DeriveParameters(cmd); ``` Set the value of the parameter by creating an object of the .NET type and assigning it to the `Value` property of the parameter: -```text +```csharp addr_object_type address = new addr_object_type() { street = "123 MAIN STREET", @@ -176,6 +176,6 @@ cmd.Parameters[0].Value = emp; A call to `cmd.ExecuteNonQuery()` executes the call to the `display_emp()` method: -```text +```csharp cmd.ExecuteNonQuery(); ``` diff --git a/product_docs/docs/net_connector/8.0.5.1/17_advanced_server_net_connector_logging.mdx b/product_docs/docs/net_connector/8.0.5.1/17_advanced_server_net_connector_logging.mdx index d9155770283..fb5664d14cf 100644 --- a/product_docs/docs/net_connector/8.0.5.1/17_advanced_server_net_connector_logging.mdx +++ b/product_docs/docs/net_connector/8.0.5.1/17_advanced_server_net_connector_logging.mdx @@ -18,7 +18,7 @@ The .NET logging API works with a variety of built-in and third-party logging pr Create a `Microsoft.Extensions.Logging.LoggerFactory` and configure an `EDBDataSource` with it. Any use of connections opened through this data source log using this logger factory. -```text +```csharp var loggerFactory = LoggerFactory.Create(builder => builder.AddSimpleConsole()); var dataSourceBuilder = new EDBDataSourceBuilder(connectionString); @@ -34,7 +34,7 @@ _ = await command.ExecuteScalarAsync(); Create a `Microsoft.Extensions.Logging.LoggerFactory` and configure EDB .NET Connector's logger factory globally using `EDBLoggingConfiguration.InitializeLogging`. Configure it at the start of your program, before using any other EDB .NET Connector API. -```text +```csharp var loggerFactory = LoggerFactory.Create(builder => builder.AddSimpleConsole()); EDBLoggingConfiguration.InitializeLogging(loggerFactory); @@ -57,7 +57,7 @@ The following log levels are available: This example shows how to change the log level to `Trace`: -```text +```csharp var loggerFactory = LoggerFactory.Create(builder => builder .SetMinimumLevel(LogLevel.Trace .AddSimpleConsole() @@ -68,7 +68,7 @@ var loggerFactory = LoggerFactory.Create(builder => builder This example shows how to format your log output. Create a `LoggerFactory` to restrict each log message to a single line and add a date and time to the log: -```text +```csharp var loggerFactory = LoggerFactory.Create(builder => builder .SetMinimumLevel(LogLevel.Trace)