You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
C#
52 lines
1.1 KiB
C#
|
|
using DB.Entity;
|
|
using DB;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Windows.Forms;
|
|
using Chloe.PostgreSQL.DDL;
|
|
using Chloe.RDBMS.DDL;
|
|
using Tool;
|
|
using DB.Service;
|
|
using Tool.Model;
|
|
|
|
namespace RfidWeb
|
|
{
|
|
public partial class FromSQl : Form
|
|
{
|
|
public FromSQl()
|
|
{
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
private void ucBtnExt1_BtnClick(object sender, EventArgs e)
|
|
{
|
|
//DbInfo.Init(typeof(RoleMapper).Assembly);
|
|
DbInfo.Init(typeof(UserInfo).Assembly);
|
|
var rfidSetting = RfidSetting.Current;
|
|
var dbContext = DbFactory.GetContext;
|
|
|
|
new PostgreSQLTableGenerator(dbContext).CreateTables(TableCreateMode.CreateIfNotExists);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
private long GetId=> SnowflakeFactory.NewId;
|
|
|
|
private void ucBtnExt2_BtnClick(object sender, EventArgs e)
|
|
{
|
|
DbInfo.Init(typeof(UserInfo).Assembly);
|
|
UpdateLogService service = new UpdateLogService();
|
|
service.AddOrUpdateLog(TestFactory.TestUser(), "test", 1);
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
}
|