https://github.com/jtsoya539/oracle4net
Simple Oracle Database connector for Microsoft .NET Core
https://github.com/jtsoya539/oracle4net
csharp dotnet-core oracle
Last synced: 6 months ago
JSON representation
Simple Oracle Database connector for Microsoft .NET Core
- Host: GitHub
- URL: https://github.com/jtsoya539/oracle4net
- Owner: jtsoya539
- License: mit
- Created: 2018-02-27T17:11:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-14T18:24:08.000Z (about 7 years ago)
- Last Synced: 2025-11-12T14:11:14.625Z (8 months ago)
- Topics: csharp, dotnet-core, oracle
- Language: C#
- Size: 293 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Oracle4Net [](https://www.nuget.org/packages/Oracle4Net/)
Simple Oracle Database connector for Microsoft .NET Core based on official [Oracle Data Provider for .NET (ODP.NET) Core](https://www.nuget.org/packages/Oracle.ManagedDataAccess.Core/).
## Features
* .NET Standard 2.0 Library
* Easy installation using [NuGet](https://www.nuget.org/packages/Oracle4Net/)
* Console Logging
* Oracle Exception Handling
## Example
```csharp
using System;
using Oracle4Net;
class Program
{
static void Main(string[] args)
{
const string dataSource = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XEPDB1)))";
OracleDatabase db = new OracleDatabase();
System.Console.WriteLine(db.IsConnected());
try
{
db.Connect("hr", "password", dataSource);
System.Console.WriteLine(db.ExecuteSQLCount("employees", "department_id = 50"));
db.Disconnect();
System.Console.WriteLine(db.IsConnected());
}
catch (OracleDatabaseException)
{
System.Console.WriteLine("Oracle Exception");
}
}
}
```
## Issues
Found a bug? Have suggestion? Please report in the [Issues Tracker](https://github.com/jtsoya539/Oracle4Net/issues).