摘要:
实现代码: public partial class ui_log : ListBox { public ui_log() { InitializeComponent(); this.DrawMode = DrawMode.OwnerDrawFixed; this.BackColor = Color 阅读全文
摘要:
这篇文章记录下如何使用SqlSugar实现数据库的读写分离,增删改只操作主库,通过数据库的分发和订阅功能完成主库数据自动往从库同步。 下面代码实现了配置主库和从库的数据库链接,同时往主库新增一条记录。 using SqlSugar; using SqlSugarStart.DbModels; usi 阅读全文