摘要: SmartCode 常见问题 SmartCode 能干什么? SmartCode = IDataSource IBuildTask IOutput = Build Everything SmartCode的执行流是 数据源 构建任务 输出,也就是说应用场景非常广泛。 1. 从DB读取数据结构,最终生 阅读全文
posted @ 2018-10-20 23:36 Ahoo-Wang 阅读(1415) 评论(0) 推荐(0) 编辑
摘要: 常见问题 为什么不支持 Linq? SmartSql 希望 开发人员更多的接触 Sql ,获得绝对的控制权与安全感。所以目前没有计划支持 Code First 编程模式。 我想好了Sql怎么写,然后再来写Linq,完了可能还要再查看一下Linq输出的Sql是什么样的,这真是糟糕的体验。要想对Sql做 阅读全文
posted @ 2018-10-15 23:05 Ahoo-Wang 阅读(1963) 评论(4) 推荐(3) 编辑
摘要: SmartSql Why 拥抱 跨平台 DotNet Core,是时候了。 高性能、高生产力,超轻量级的ORM。 156kb (Dapper: 168kb ) So SmartSql TargetFrameworks: .NETFramework 4.6 & .NETStandard 2.0 Sma 阅读全文
posted @ 2018-10-15 18:03 Ahoo-Wang 阅读(1319) 评论(0) 推荐(1) 编辑
摘要: 常规操作 安装 SmartSql 安装 SmartSql.DIExtension 配置SmartSqlConfig.xml 写库(Write)必选 唯一节点 读库(Read)可选 多节点配置 Postgresql Postgresql 客户端 Npgsql MYSQL 安装mysql 客户端 Mys 阅读全文
posted @ 2018-10-15 15:24 Ahoo-Wang 阅读(1838) 评论(1) 推荐(1) 编辑
摘要: 目录 0. 设计重点 1. 流程图 2. 伪代码 2.1. PublishEvent 2.2. SubscribeEvent 2.3. Publisher 2.4. Subscriber 3. 微服务 强一致性 3.1 Publisher 3.2 Subscriber 4. 事件总线 跨服务 最终一 阅读全文
posted @ 2018-10-15 15:23 Ahoo-Wang 阅读(2252) 评论(4) 推荐(2) 编辑
摘要: SmartSql 快速使用指南(https://github.com/Ahoo Wang/SmartSql) ISmartSqlMapper 常用(部分)接口概述 | 函数 | 说明 | | : | :| | Execute | IDbCommand.ExecuteNonQuery,执行返回受影响行 阅读全文
posted @ 2018-10-15 15:21 Ahoo-Wang 阅读(3988) 评论(1) 推荐(4) 编辑
摘要: | ORM | Type | Method | Return | Mean | Error | StdDev | Rank | Gen 0 | Gen 1 | Gen 2 | Allocated | | | | | | :| :| :| :| :| :| :| :| | Native | Nativ 阅读全文
posted @ 2018-10-09 21:52 Ahoo-Wang 阅读(894) 评论(0) 推荐(0) 编辑
摘要: SmartCode(https://github.com/Ahoo Wang/SmartCode) SmartCode = IDataSource IBuildTask IOutput = Build Everything Introduction SmartCode.Generator (代码生成 阅读全文
posted @ 2018-10-06 23:41 Ahoo-Wang 阅读(5367) 评论(3) 推荐(3) 编辑