The following table shows the C# equivalents of SQL Server data types -
SQL Server Data Types | Equivalent C# data type |
---|---|
Byte[] | |
Bytes[] | |
None | ##varchar |
char | |
nvarchar | |
nchar | |
Text | |
ntext | |
##line version | |
bits | |
tinyint | |
smallint | |
int | |
bigint | |
smallmoney | |
Money | |
##Number | Decimal |
Decimal | Decimal |
Real number | Single |
##Floating point | Double |
Small Date Time | Date Time |
Date Time | Date Time |
Table | None |
Cursor | None |
Timestamp | None |
xml | None |
The above is the detailed content of What are the C# equivalents of SQL Server data types?. For more information, please follow other related articles on the PHP Chinese website!