We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b85d62a commit 2163ea5Copy full SHA for 2163ea5
source/includes/code-examples/quick-reference.cs
@@ -148,14 +148,17 @@ void SkipExample()
148
internal class PlanetDbContext : DbContext
149
{
150
public DbSet<Planet> Planets { get; init; }
151
+
152
public static PlanetDbContext Create(IMongoDatabase database) =>
153
new(new DbContextOptionsBuilder<PlanetDbContext>()
154
.UseMongoDB(database.Client, database.DatabaseNamespace.DatabaseName)
155
.Options);
156
157
public PlanetDbContext(DbContextOptions options)
158
: base(options)
159
160
}
161
162
protected override void OnModelCreating(ModelBuilder modelBuilder)
163
164
base.OnModelCreating(modelBuilder);
0 commit comments