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.
 
 

34 lines
740 B

using EC.Entity.CameraInfo;
using Microsoft.EntityFrameworkCore;
#nullable disable
namespace EC.Service.CameraInfo
{
public class UserInfoContext : BaseDbContext<UserInfo>
{
public UserInfoContext()
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<UserInfo>(entity =>
{
entity.HasKey(e => e.UserName);
entity.ToTable("UserInfo");
entity.Property(e => e.UserName).HasColumnType("VARCHAR (20)");
entity.Property(e => e.UserAdmin).HasColumnType("VARCHAR (30)");
entity.Property(e => e.UserPwd).HasColumnType("VARCHAR (20)");
entity.Property(e => e.UserType).HasColumnType("VARCHAR (10)");
});
OnModelCreatingPartial(modelBuilder);
}
}
}