File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
examples/Linq2db.QuickStart Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- namespace Linq2db . QuickStart ;
1+ using LinqToDB . Internal . DataProvider . Ydb ;
2+
3+ namespace Linq2db . QuickStart ;
24
35using Microsoft . Extensions . Logging ;
46using 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" ) ; }
Original file line number Diff line number Diff line change 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" />
2019 <IgnoresAccessChecksTo Include =" linq2db" />
2120</ItemGroup >
2221
23-
24- <!-- T4-шаблон нам не нужен в сборке -->
2522 <ItemGroup >
2623 <None Update =" YdbHints.tt" >
2724 <CopyToOutputDirectory >Never</CopyToOutputDirectory >
You can’t perform that action at this time.
0 commit comments