Sqlite 数据类型映射到 .net (CLR) 框架数据类型
请任何人给我一些有关从 Sqlite 到 .net (CLR) 框架的数据类型映射的真实信息。
问候
乌迈尔
Please can any one give me some authentic information regarding data type mappings from Sqlite to .net (CLR) framework.
Regards
Umair
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SQLite(对于数据库而言)有点奇怪,因为它使用动态类型系统。类型与数据相关,而不是与列相关。
来自 SQLite 网站:
甚至日期也存储为以下类型之一:
因此,SQLite 将数据与这 5 种类型之一(包括 NULL)相关联,并且应用程序负责将数据解释为更具体的内容(例如,对于 .NET,TEXT 为 DateTime)。
SQLite is kind of odd (for a database) in that it uses a dynamic type system. The type is associated with the data, not the column.
From SQLite website:
Even dates are stored as one of those types:
So SQLite associates data with one of those 5 types (including NULL) and the application is responsible for interpreting the data as something more specific (e.g. TEXT to DateTime, in the case of .NET).
不确定你的意思。
不存在真正的映射。 SQLLite 本身是一种独立的数据库技术,并且有 .NET 包装器(或多个包装器)围绕它。最著名的一个是: http://sqlite.phxsoftware.com/
如果您查看此页面(其SQL Lite 官方网站):
http://www.sqlite.org/datatype3.html
您可以看到中的所有数据类型SQL Lite 在那里。现在有些是非常明显的,例如 char、int 等。您不确定的,您可以更新您的问题并将其发布到?
华泰
Not sure what you entirely mean.
There are no real mappings as such. SQLLite is a separate DB technology on its own and there is .NET wrapper (or wrappers) around it. The most famous one is : http://sqlite.phxsoftware.com/
If you look at this page (Its the official SQL Lite website):
http://www.sqlite.org/datatype3.html
You can see all the Data Types in SQL Lite in there. Now some are pretty obvious like char, int, etc. The ones you're not sure of, you can update your question and post them in?
HTH