Shikiro

导航

CodeSmith,SqlServer,C#中的类型对照

 

SQLServer          CodeSmith                            C#
bigint                    Int64                                        Int64
binary                  Binary                                  System.Byte[]
bit                         Boolean                                    bool
char                     AnsiString         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

posted on 2010-06-21 15:11  Shikiro  阅读(240)  评论(0编辑  收藏  举报