1023
nodyang@aliyun.com 4 months ago
parent 9d99f3c577
commit 95c1f81fcd

@ -16,6 +16,9 @@ namespace DB.Entity
/// plc 数据类型 bool float int bit
/// </summary>
public string DataType { get; set; }
public string FromType { get; set; }
}

@ -147,24 +147,13 @@ namespace RfidWeb
// new PostgreSQLTableGenerator(dbContext).CreateTables(TableCreateMode.CreateNew);
}
private long GetId=> SnowflakeFactory.NewId;
private void ucBtnExt2_BtnClick(object sender, EventArgs e)
{
var dbContext = DbFactory.GetContext;
for (int i = 0; i < 100; i++)
{
PointLog log = new PointLog();
log.ID = SnowflakeFactory.NewId;
log.PointName = "测试:" + i;
log.PointAddress = "DB:" + i;
log.Msg = "test:" + i;
log.CreateDate=DateTime.Now;
log.LastModifyDate=DateTime.Now;
log.LastModifyUserId = "123";
log.CreateUserId = "123";
dbContext.Insert(log);
}
}
}
}

@ -19,8 +19,8 @@ namespace RfidWeb
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//Application.Run(new FromSQl());
Application.Run(new FormMain());
Application.Run(new FromSQl());
//Application.Run(new FormMain());
}
}
}

Loading…
Cancel
Save