CodeSmith系列

CodeSmith系列,第1张

概述CodeSmith,SqlServer,C#中的类型对照 SqlServer         CodeSmith                                   cs bigint                  Int64                                        Int64 binary                 Binary   CodeSmith,SqlServer,C#中的类型对照

sqlServer         CodeSmith                                   cs
bigint                  Int64                                        Int64
binary                 Binary                               System.Byte[]
bit                      Boolean                                    bool
char                  AnsiStringFixedLength              string
datetime             DateTime                                   string
decimal              Decimal                                    Decimal
float                   Double                                        Double
image                 Binary                                System.Byte[]
int                      Int32                                            int
money               Currency                                   Single
nchar                 StringFixedLength                          string
ntext                  String                                            string
numeric             Decimal                                    Decimal
nvarchar            String                                            string
real                   Single                                            Single
smalldatetime     DateTime                                       string
smallint               Int16                                            Int16
smallmoney         Currency                                   Single
sql_variant          Object                                        Object
text                     AnsiString                                   string
timestamp           Binary                                    System.Byte[]
tinyint                  Byte                                            Byte
uniqueIDentifIEr     GuID                                       System.GuID
varbinary             Binary                                    System.Byte[]
varchar                AnsiString                                   string

其中有些类型为了处理简便,做了一些调整。如:DataTime类型转成string型处理

 

http://www.cnblogs.com/muzhiye/archive/2010/10/02/1841326.HTML

总结

以上是内存溢出为你收集整理的CodeSmith系列全部内容,希望文章能够帮你解决CodeSmith系列所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/1181493.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-02
下一篇 2022-06-02

发表评论

登录后才能评论

评论列表(0条)

保存