username@email.com
2025-04-27 15eb82df2d6ec539e9d4245bfe08d531e8eb6379
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
 
#nullable disable
 
namespace zhengcaioa.Models
{
    public partial class IMdbtestContext : DbContext
    {
        public IMdbtestContext()
        {
        }
 
        public IMdbtestContext(DbContextOptions<IMdbtestContext> options)
            : base(options)
        {
        }
 
        public virtual DbSet<ImUserInfo> ImUserInfos { get; set; }
 
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            if (!optionsBuilder.IsConfigured)
            {
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263.
                optionsBuilder.UseSqlServer("Data Source=.;Initial Catalog=IMdbtest;User ID=sa;Password=123456");
            }
        }
 
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.HasAnnotation("Relational:Collation", "Chinese_PRC_CI_AS");
 
            modelBuilder.Entity<ImUserInfo>(entity =>
            {
                entity.ToTable("ImUserInfo");
 
                entity.HasComment("Im用户相关");
 
                entity.Property(e => e.Id)
                    .HasMaxLength(200)
                    .IsUnicode(false)
                    .HasColumnName("ID")
                    .HasComment("外部系统关联ID,跟外部关联ID一致");
 
                entity.Property(e => e.CreatBy)
                    .HasMaxLength(200)
                    .IsUnicode(false)
                    .HasComment("创建人");
 
                entity.Property(e => e.CreatTime)
                    .HasColumnType("datetime")
                    .HasComment("创建时间");
 
                entity.Property(e => e.Gender).HasComment("0为男 ,1 为女");
 
                entity.Property(e => e.HeadPictureId)
                    .HasColumnName("HeadPictureID")
                    .HasComment("头像附件");
 
                entity.Property(e => e.IsEn).HasComment("使能(是否有效)");
 
                entity.Property(e => e.Isdelete)
                    .HasColumnName("isdelete")
                    .HasComment("删除标志");
 
                entity.Property(e => e.NickName)
                    .HasMaxLength(200)
                    .IsUnicode(false)
                    .HasComment("昵称");
 
                entity.Property(e => e.Other)
                    .HasMaxLength(30)
                    .IsUnicode(false)
                    .HasComment("其他");
 
                entity.Property(e => e.Sign)
                    .HasMaxLength(60)
                    .IsUnicode(false)
                    .HasColumnName("sign")
                    .HasComment("签名,长度不超过60");
 
                entity.Property(e => e.Sort)
                    .HasColumnName("sort")
                    .HasComment("排序");
 
                entity.Property(e => e.UpdataBy)
                    .HasMaxLength(200)
                    .IsUnicode(false)
                    .HasComment("修改人");
 
                entity.Property(e => e.UpdataTime)
                    .HasColumnType("datetime")
                    .HasComment("修改时间");
            });
 
            OnModelCreatingPartial(modelBuilder);
        }
 
        partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
    }
}