Skip to content

Commit 2f985c6

Browse files
committed
fix quckStart
1 parent d45366e commit 2f985c6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/Linq2db.QuickStart/Program.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace Linq2db.QuickStart;
1+
using LinqToDB.Internal.DataProvider.Ydb;
2+
3+
namespace Linq2db.QuickStart;
24

35
using Microsoft.Extensions.Logging;
46
using Polly;
@@ -157,8 +159,8 @@ public async Task Run()
157159

158160
private async Task InitTables()
159161
{
162+
DataConnection.AddProviderDetector(YdbTools.ProviderDetector);
160163
await using var db = new MyYdb(BuildOptions());
161-
162164
try { await db.CreateTableAsync<Series>(); } catch { _logger.LogDebug("series exists"); }
163165
try { await db.CreateTableAsync<Season>(); } catch { _logger.LogDebug("seasons exists"); }
164166
try { await db.CreateTableAsync<Episode>(); } catch { _logger.LogDebug("episodes exists"); }

src/Linq2db.Ydb/src/Linq2db.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1111
</PropertyGroup>
1212

13-
<!-- .csproj -->
1413
<ItemGroup>
1514
<PackageReference Include="linq2db" Version="6.0.0-rc.3" />
1615
<PackageReference Include="Ydb.Sdk" Version="0.24.0" />
@@ -20,8 +19,6 @@
2019
<IgnoresAccessChecksTo Include="linq2db" />
2120
</ItemGroup>
2221

23-
24-
<!-- T4-шаблон нам не нужен в сборке -->
2522
<ItemGroup>
2623
<None Update="YdbHints.tt">
2724
<CopyToOutputDirectory>Never</CopyToOutputDirectory>

0 commit comments

Comments
 (0)