You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

42 lines
841 B

using EC.Entity.CameraInfo;
using Microsoft.EntityFrameworkCore;
#nullable disable
namespace EC.Service.CameraInfo
{
public class PollInfoContext : BaseDbContext<PollInfo>
{
public PollInfoContext()
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<PollInfo>(entity =>
{
entity.HasKey(e => e.PollId);
entity.ToTable("PollInfo");
entity.Property(e => e.PollId)
.ValueGeneratedNever()
.HasColumnName("PollID");
entity.Property(e => e.PollGroup)
.IsRequired()
.HasColumnType("VARCHAR (20)");
entity.Property(e => e.RtspMain)
.IsRequired()
.HasColumnType("VARCHAR (250)");
entity.Property(e => e.RtspSub)
.IsRequired()
.HasColumnType("VARCHAR (250)");
});
OnModelCreatingPartial(modelBuilder);
}
}
}