25 lines
600 B
C#
25 lines
600 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Microsoft.AspNetCore.Diagnostics.HealthChecks
|
|
{
|
|
public class TestDbContext : DbContext
|
|
{
|
|
public TestDbContext(DbContextOptions<TestDbContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
public DbSet<Blog> Blogs { get; set; }
|
|
}
|
|
|
|
public class Blog
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public int Name { get; set; }
|
|
}
|
|
}
|