Skip to content

Commit c1f8cbc

Browse files
fix
1 parent 54bc8e9 commit c1f8cbc

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

examples/src/Common/DataUtils.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ namespace Ydb.Sdk.Examples;
77

88
public record Series(ulong SeriesId, string Title, DateTime ReleaseDate, string Info)
99
{
10-
public static Series FromRow(Value.ResultSet.Row row)
11-
{
12-
return new Series(
10+
public static Series FromRow(Value.ResultSet.Row row) =>
11+
new(
1312
SeriesId: (ulong)row["series_id"].GetOptionalUint64()!,
1413
Title: (string)row["title"]!,
1514
ReleaseDate: (DateTime)row["release_date"].GetOptionalDate()!,
1615
Info: (string)row["series_info"]!
1716
);
18-
}
1917
}
2018

2119
public record Season(ulong SeriesId, ulong SeasonId, string Title, DateTime FirstAired, DateTime LastAired);

examples/src/DapperExample/Program.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,5 @@ internal class User
2929
public string Name { get; init; } = null!;
3030
public string Email { get; init; } = null!;
3131

32-
public override string ToString()
33-
{
34-
return $"Id: {Id}, Name: {Name}, Email: {Email}";
35-
}
32+
public override string ToString() => $"Id: {Id}, Name: {Name}, Email: {Email}";
3633
}

src/Ydb.Sdk/tests/Fixture/DriverFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class DriverFixture : IAsyncLifetime
66
{
77
public Driver Driver { get; }
88

9-
protected DriverFixture()
9+
public DriverFixture()
1010
{
1111
var driverConfig = new DriverConfig(
1212
endpoint: "grpc://localhost:2136",

0 commit comments

Comments
 (0)