Skip to content

Commit 2163ea5

Browse files
spacing
1 parent b85d62a commit 2163ea5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/includes/code-examples/quick-reference.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,17 @@ void SkipExample()
148148
internal class PlanetDbContext : DbContext
149149
{
150150
public DbSet<Planet> Planets { get; init; }
151+
151152
public static PlanetDbContext Create(IMongoDatabase database) =>
152153
new(new DbContextOptionsBuilder<PlanetDbContext>()
153154
.UseMongoDB(database.Client, database.DatabaseNamespace.DatabaseName)
154155
.Options);
156+
155157
public PlanetDbContext(DbContextOptions options)
156158
: base(options)
157159
{
158160
}
161+
159162
protected override void OnModelCreating(ModelBuilder modelBuilder)
160163
{
161164
base.OnModelCreating(modelBuilder);

0 commit comments

Comments
 (0)