Comments (12)
from smartsql.
现在也不需要修改代码呀。
因为 DbProvider 相对来说是比较稳定的,所以硬编码到代码层面了,所以我们我也不需要自己维护 providers。这样其实更方便了,只要写一个 DbProvider 名称就可以了。
from smartsql.
之前帮一个群友对接人大金仓数据库,就得在DbProvider里去添加东西。如果是通过配置文件配置,就不需要修改源码。
from smartsql.
为什么需要修改源码啊?
from smartsql.
https://smartsql.net/config/#database-%E5%AD%90%E6%A0%87%E7%AD%BE
直接填上这个就可以啦。
from smartsql.
这里的Name的值是不是得DbProvider.cs定义的常量里存在
SmartSql/src/SmartSql/DataSource/DbProvider.cs
Lines 10 to 17 in cbc9c45
同时DbProviderManager.cs里定义的常量存在对应的DbProvider
SmartSql/src/SmartSql/DataSource/DbProviderManager.cs
Lines 13 to 66 in cbc9c45
然后在构造函数里Add对应的Provider
SmartSql/src/SmartSql/DataSource/DbProviderManager.cs
Lines 70 to 79 in cbc9c45
from smartsql.
你是不是没有安装
SmartSql.Schema,所以没有看到智能提示?
from smartsql.
明白了……
from smartsql.
你是不是没有安装
SmartSql.Schema,所以没有看到智能提示?
装了啊,有提示。但这个地方一般就想着设置一个Name。认为对应的Type都是在代码里定义好了的。
from smartsql.
应用还有人跟你有相同的问题,有兴趣的话可以一起参与一下文档共建。https://github.com/Smart-Kit/SmartSql-Docs
from smartsql.
ok
from smartsql.
ok
没啥其他问题的话就把issue关掉吧。
from smartsql.
Related Issues (20)
- 实现mybatis 的 Example HOT 2
- 升级到net5 HOT 7
- Where或者Dynamic没有任何命中时,会产生不合法的语句 HOT 2
- 找不到配置项的异常提示有点迷 HOT 5
- where条件里In查询是怎么写的 HOT 1
- select * 报错,改为select id,name.... 全部列名就没事 HOT 2
- 升级版本后ISmartSqlMapper,SmartSql.Abstractions找不到
- for
- 哪里有smartsql的学习网站,感觉官网写的太笼统了,而且用的人也不是很多 HOT 4
- Oracle 中的union all 语句 smartsql不支持,请帮忙看下。 HOT 4
- IList<string> List<T> 类似的泛型在反序列化时报错
- SmartSql目前是否还在维护?
- The unit test project (SmartSql.Test.Unit) uses MySql as the database for easy integration testing. HOT 1
- Dependency Dashboard
- 最近一次修改SqlText.cs中的正则表达式,会导致有些情况下匹配错误
- 使用In时,当集合元素过多时,执行效率会大幅降低 HOT 4
- Settings.ParameterPrefix is not affected in method using StatementAttribute HOT 2
- Oracle存储过程,返回参数没有游标
- Parameter新增DbType属性,直接指定数据库字段类型,无需配置TypeHandler
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartsql.