muzhiye

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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型处理

posted on 2010-10-02 15:40  muzhiye  阅读(286)  评论(0编辑  收藏  举报