|
|
@@ -68,8 +68,7 @@ namespace MySystem.OpModels
|
|
|
{
|
|
|
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.
|
|
|
- optionsBuilder.UseMySql("server=47.109.31.237;port=3306;user=KxsOpServer;password=r7jwZ8ydLoeswDR4;database=KxsOpServer;charset=utf8", x => x.ServerVersion("5.7.28-mysql"));
|
|
|
+ optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["OpSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -2610,6 +2609,10 @@ namespace MySystem.OpModels
|
|
|
.HasCharSet("utf8")
|
|
|
.HasCollation("utf8_general_ci");
|
|
|
|
|
|
+ entity.Property(e => e.ExpireDate)
|
|
|
+ .HasColumnType("datetime")
|
|
|
+ .HasComment("过期时间");
|
|
|
+
|
|
|
entity.Property(e => e.FilePath)
|
|
|
.HasColumnType("varchar(200)")
|
|
|
.HasCharSet("utf8")
|