Skip to content

Commit e0eaf43

Browse files
fix linter
1 parent 2aac567 commit e0eaf43

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

examples/src/EF_YC/Program.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,18 @@ await Parser.Default.ParseArguments<CmdOptions>(args).WithParsedAsync(async cmd
3131
{
3232
Console.WriteLine($"- {user.Id}: {user.Name} ({user.Email})");
3333
}
34+
35+
// Users in database:
36+
// - 1: Alex ([email protected])
37+
// - 2: Kirill ([email protected])
3438
});
3539

3640

3741
internal class User
3842
{
39-
public int Id { get; set; }
40-
public string Name { get; set; }
41-
public string Email { get; set; }
43+
public int Id { get; init; }
44+
public string Name { get; init; } = string.Empty;
45+
public string Email { get; init; } = string.Empty;
4246
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
4347
}
4448

0 commit comments

Comments
 (0)