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.
 
 

62 lines
1.6 KiB

using EC.Entity.CameraInfo;
using Microsoft.EntityFrameworkCore;
#nullable disable
namespace EC.Service.CameraInfo
{
public class IpcInfoContext : BaseDbContext<IpcInfo>
{
public IpcInfoContext()
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<IpcInfo>(entity =>
{
entity.HasKey(e => e.IpcId);
entity.ToTable("IpcInfo");
entity.Property(e => e.IpcId).HasColumnName("IpcID");
entity.Property(e => e.IpcAddr).HasColumnType("VARCHAR (100)");
entity.Property(e => e.IpcEnable).HasColumnType("VARCHAR (2)");
entity.Property(e => e.IpcImage).HasColumnType("VARCHAR (30)");
entity.Property(e => e.IpcName)
.IsRequired()
.HasColumnType("VARCHAR (30)");
entity.Property(e => e.IpcPosition).HasColumnType("VARCHAR (50)");
entity.Property(e => e.IpcType).HasColumnType("VARCHAR (30)");
entity.Property(e => e.IpcX).HasColumnType("INTEGER (4)");
entity.Property(e => e.IpcY).HasColumnType("INTEGER (4)");
entity.Property(e => e.MediaAddr).HasColumnType("VARCHAR (150)");
entity.Property(e => e.NvrName).HasColumnType("VARCHAR (30)");
entity.Property(e => e.OnvifAddr).HasColumnType("VARCHAR (150)");
entity.Property(e => e.PtzAddr).HasColumnType("VARCHAR (150)");
entity.Property(e => e.RtspMain).HasColumnType("VARCHAR (250)");
entity.Property(e => e.RtspSub).HasColumnType("VARCHAR (250)");
entity.Property(e => e.UserName).HasColumnType("VARCHAR (20)");
entity.Property(e => e.UserPwd).HasColumnType("VARCHAR (20)");
});
OnModelCreatingPartial(modelBuilder);
}
}
}