Skip to content

Commit f977ccc

Browse files
refactoring
1 parent 4edf937 commit f977ccc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

examples/Ydb.Sdk.AdoNet.QuickStart/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private async Task InitTables()
5353

5454
var ydbCommand = connection.CreateCommand();
5555
ydbCommand.CommandText = """
56-
CREATE TABLE IF NOT EXISTS series
56+
CREATE TABLE series
5757
(
5858
series_id Uint64,
5959
title Text,
@@ -62,7 +62,7 @@ CREATE TABLE IF NOT EXISTS series
6262
PRIMARY KEY (series_id)
6363
);
6464
65-
CREATE TABLE IF NOT EXISTS seasons
65+
CREATE TABLE seasons
6666
(
6767
series_id Uint64,
6868
season_id Uint64,
@@ -72,7 +72,7 @@ CREATE TABLE IF NOT EXISTS seasons
7272
PRIMARY KEY (series_id, season_id)
7373
);
7474
75-
CREATE TABLE IF NOT EXISTS episodes
75+
CREATE TABLE episodes
7676
(
7777
series_id Uint64,
7878
season_id Uint64,

src/Ydb.Sdk/src/Ado/Internal/SqlParam.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ public ListPrimitiveParam(IReadOnlyList<string> paramNames, int globalNumber)
2929
Name = $"{PrefixParamName}_{globalNumber}";
3030
}
3131

32-
public bool IsNative => false;
3332
public string Name { get; }
3433

34+
public bool IsNative => false;
35+
3536
public YdbValue YdbValueFetch(Dictionary<string, YdbValue> ydbParameters) => YdbValue
3637
.MakeList(_paramNames.Select(ydbParameters.Get).ToArray());
3738
}

0 commit comments

Comments
 (0)