Commit 39a6c3d5 by 赵剑炜

修改

parent 05ce1804
...@@ -4,6 +4,7 @@ using System; ...@@ -4,6 +4,7 @@ using System;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using JmpModel.Model; using JmpModel.Model;
using JmpModel.TempModel;
namespace JmpModel.Model.DataContext namespace JmpModel.Model.DataContext
{ {
...@@ -23,6 +24,7 @@ namespace JmpModel.Model.DataContext ...@@ -23,6 +24,7 @@ namespace JmpModel.Model.DataContext
public virtual DbSet<BaseCharge> BaseCharges { get; set; } public virtual DbSet<BaseCharge> BaseCharges { get; set; }
public virtual DbSet<BaseJpBag> BaseJpBags { get; set; } public virtual DbSet<BaseJpBag> BaseJpBags { get; set; }
public virtual DbSet<BaseJpBagMap> BaseJpBagMaps { get; set; } public virtual DbSet<BaseJpBagMap> BaseJpBagMaps { get; set; }
public virtual DbSet<useCountResult> useCountResult { get; set; }
public virtual DbSet<BaseJpCabinet> BaseJpCabinets { get; set; } public virtual DbSet<BaseJpCabinet> BaseJpCabinets { get; set; }
public virtual DbSet<BaseJpCabinetInvErrorMsg> BaseJpCabinetInvErrorMsgs { get; set; } public virtual DbSet<BaseJpCabinetInvErrorMsg> BaseJpCabinetInvErrorMsgs { get; set; }
public virtual DbSet<BaseJpCabinetOutinlog> BaseJpCabinetOutinlogs { get; set; } public virtual DbSet<BaseJpCabinetOutinlog> BaseJpCabinetOutinlogs { get; set; }
...@@ -125,7 +127,7 @@ namespace JmpModel.Model.DataContext ...@@ -125,7 +127,7 @@ namespace JmpModel.Model.DataContext
if (!optionsBuilder.IsConfigured) if (!optionsBuilder.IsConfigured)
{ {
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings. #warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings.
optionsBuilder.UseSqlServer("Data Source=192.168.3.188;Initial Catalog=junmppolicesqldev;Persist Security Info=True;User ID=sa;Password=Junmp123"); optionsBuilder.UseSqlServer("Data Source=192.168.3.188;Initial Catalog=junmppolicesql1115_3;Persist Security Info=True;User ID=sa;Password=Junmp123");
} }
} }
...@@ -925,7 +927,10 @@ Smart:智能货架 ...@@ -925,7 +927,10 @@ Smart:智能货架
entity.Property(e => e.ParentName).IsUnicode(false); entity.Property(e => e.ParentName).IsUnicode(false);
}); });
modelBuilder.Entity<useCountResult>(entity =>
{
entity.HasNoKey();
});
modelBuilder.Entity<ColumnConfig>(entity => modelBuilder.Entity<ColumnConfig>(entity =>
{ {
entity.Property(e => e.ColumnName).IsUnicode(false); entity.Property(e => e.ColumnName).IsUnicode(false);
...@@ -3260,8 +3265,6 @@ Warehouse:仓库"); ...@@ -3260,8 +3265,6 @@ Warehouse:仓库");
entity.Property(e => e.Name).IsUnicode(false); entity.Property(e => e.Name).IsUnicode(false);
entity.Property(e => e.NameJc).IsUnicode(false);
entity.Property(e => e.OrgCode).IsUnicode(false); entity.Property(e => e.OrgCode).IsUnicode(false);
entity.Property(e => e.OrgId).IsUnicode(false); entity.Property(e => e.OrgId).IsUnicode(false);
...@@ -3272,8 +3275,6 @@ Warehouse:仓库"); ...@@ -3272,8 +3275,6 @@ Warehouse:仓库");
entity.Property(e => e.SizeName).IsUnicode(false); entity.Property(e => e.SizeName).IsUnicode(false);
entity.Property(e => e.SortCode).IsUnicode(false);
entity.Property(e => e.TypeName).IsUnicode(false); entity.Property(e => e.TypeName).IsUnicode(false);
entity.Property(e => e.TypeOneId).IsUnicode(false); entity.Property(e => e.TypeOneId).IsUnicode(false);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论