diff --git a/best-practice/aspnetcore.md b/best-practice/aspnetcore.md index de7c8c3..3160633 100644 --- a/best-practice/aspnetcore.md +++ b/best-practice/aspnetcore.md @@ -19,34 +19,11 @@ Install-Package SmartSql.DIExtension - 写库(Write)必选 唯一节点 - 读库(Read)可选 多节点配置 -#### Postgresql - -- Postgresql 客户端 *Npgsql* - -``` powershell -Install-Package Npgsql -``` - -``` xml - - - - - - - - - - - - -``` +### 安装对应ADO.NET驱动 -#### MYSQL +#### MySql -- 安装mysql 客户端 *Mysql.Data* +- 安装mysql 驱动 *Mysql.Data* ``` powershell Install-Package Mysql.Data @@ -93,6 +70,31 @@ Install-Package Mysql.Data ``` +#### Postgresql + +- Postgresql 驱动 *Npgsql* + +``` powershell +Install-Package Npgsql +``` + +``` xml + + + + + + + + + + + + +``` + ### 注入依赖 ``` csharp diff --git a/guide/dy-repository.md b/guide/dy-repository.md index 0cb8cb9..8058481 100644 --- a/guide/dy-repository.md +++ b/guide/dy-repository.md @@ -86,6 +86,14 @@ /// 可选,当不使用 SmartSqlMap.Statement 时可直接定义 Sql /// public string Sql { get; set; } + /// + /// 命令类型 + /// + public CommandType CommandType { get; set; } = CommandType.Text; + /// + /// 数据源 + /// + public DataSourceChoice SourceChoice { get; set; } = DataSourceChoice.Unknow; } ``` @@ -122,7 +130,15 @@ /// /// 返回DataSet /// - GetDataSet = 6 + GetDataSet = 6, + /// + /// 返回 ValueTuple + /// + FillMultiple = 7, + /// + /// 返回嵌套实体 + /// + GetNested = 8 } ``` diff --git a/introduction/common-problem.md b/introduction/common-problem.md index 34ab3a6..c343076 100644 --- a/introduction/common-problem.md +++ b/introduction/common-problem.md @@ -7,7 +7,7 @@ SmartSql 希望 开发人员更多的接触 Sql ,获得绝对的控制权与安 > **Codefirst 一个美好,却不切实际的想法。** -## 对SmartSql很感兴趣,不只从何开始? +## 对SmartSql很感兴趣,不知从何开始? 请阅读示例项目: