From 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 28 二月 2023 13:25:09 +0800
Subject: [PATCH] 工资绩效改版

---
 zhengcaioa/Model/zcUserInfoN_db/zcUserInfoN_dbContext.cs |   50 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 49 insertions(+), 1 deletions(-)

diff --git a/zhengcaioa/Model/zcUserInfoN_db/zcUserInfoN_dbContext.cs b/zhengcaioa/Model/zcUserInfoN_db/zcUserInfoN_dbContext.cs
index 7f01ea7..835cf46 100644
--- a/zhengcaioa/Model/zcUserInfoN_db/zcUserInfoN_dbContext.cs
+++ b/zhengcaioa/Model/zcUserInfoN_db/zcUserInfoN_dbContext.cs
@@ -20,13 +20,15 @@
         public virtual DbSet<GadeRole> GadeRoles { get; set; }
         public virtual DbSet<UsergGadeRole> UsergGadeRoles { get; set; }
         public virtual DbSet<FrameworkUser> FrameworkUsers { get; set; }
+        public virtual DbSet<FrameworkRole> FrameworkRoles { get; set; }
+        public virtual DbSet<OderOfVip> OderOfVips { 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=zcUserInfoN_db;User ID=sa;Password=123456");
+                optionsBuilder.UseSqlServer("Data Source=172.26.97.147;Initial Catalog=zcUserInfoN_db;User ID=sa;Password=Za20222812");
             }
         }
 
@@ -122,6 +124,52 @@
                 entity.Property(e => e.WxOpenid).HasMaxLength(50);
             });
 
+            modelBuilder.Entity<FrameworkRole>(entity =>
+            {
+                entity.Property(e => e.Id)
+                    .ValueGeneratedNever()
+                    .HasColumnName("ID");
+
+                entity.Property(e => e.CreateBy).HasMaxLength(50);
+
+                entity.Property(e => e.RoleCode).HasMaxLength(100);
+
+                entity.Property(e => e.RoleName)
+                    .IsRequired()
+                    .HasMaxLength(50);
+
+                entity.Property(e => e.UpdateBy).HasMaxLength(50);
+            });
+
+            modelBuilder.Entity<OderOfVip>(entity =>
+            {
+                entity.ToTable("oderOfVIPs");
+
+                entity.Property(e => e.Id)
+                    .ValueGeneratedNever()
+                    .HasColumnName("ID");
+
+                entity.Property(e => e.Amout).HasColumnType("decimal(18, 2)");
+
+                entity.Property(e => e.CreateBy).HasMaxLength(50);
+
+                entity.Property(e => e.IsPayEnd).HasColumnName("isPayEND");
+
+                entity.Property(e => e.PayId).HasColumnName("PayID");
+
+                entity.Property(e => e.PayMoney).HasColumnType("decimal(18, 2)");
+
+                entity.Property(e => e.Paytype).HasColumnName("paytype");
+
+                entity.Property(e => e.RoleId).HasColumnName("RoleID");
+
+                entity.Property(e => e.UpdateBy).HasMaxLength(50);
+
+                entity.Property(e => e.UserId).HasColumnName("UserID");
+
+                entity.Property(e => e.ViPrenewType).HasColumnName("viPrenewType");
+            });
+
             OnModelCreatingPartial(modelBuilder);
         }
 

--
Gitblit v1.9.1