This commit is contained in:
sunkaixuan
2022-08-15 12:24:26 +08:00
parent 76a6d23eae
commit 92a5dc49ca
3 changed files with 42 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Data.Odbc" Version="6.0.0" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,14 @@
using System;
namespace GbaseTest
{
internal class Program
{
static void Main(string[] args)
{
var odbc= new System.Data.Odbc.OdbcConnection(@"Driver={GBase ODBC 8.3 DRIVER};Server=localhost;port=19088;Database=;Protocol=onsoctcp;Uid=gbasedbt;Pwd=GBase123;");
odbc.Open();
Console.WriteLine("Hello World!");
}
}
}