2023-08-15 22:52:30 -05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
2023-10-04 17:45:51 -05:00
|
|
|
|
namespace DamageAssesment.Api.Responses.Db
|
2023-08-15 22:52:30 -05:00
|
|
|
|
{
|
|
|
|
|
public class SurveyResponseDbContext:DbContext
|
|
|
|
|
{
|
|
|
|
|
public DbSet<Db.SurveyResponse> SurveyResponses { get; set; }
|
|
|
|
|
|
|
|
|
|
public SurveyResponseDbContext(DbContextOptions options) : base(options)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2023-08-27 10:55:58 -05:00
|
|
|
|
|
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
base.OnModelCreating(modelBuilder);
|
|
|
|
|
modelBuilder.Entity<SurveyResponse>()
|
|
|
|
|
.Property(item => item.Id)
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
}
|
2023-08-15 22:52:30 -05:00
|
|
|
|
}
|
|
|
|
|
}
|