Skip to content

Commit 44711d0

Browse files
committed
format DbTypeMap.xml
1 parent b746fe3 commit 44711d0

File tree

1 file changed

+36
-33
lines changed

1 file changed

+36
-33
lines changed

src/SmartCode.Generator/DbTypeConverter/DbTypeMap.xml

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -361,39 +361,6 @@
361361
<DbType Name="geography" To="geography"/>
362362
</Database>
363363

364-
<Database DbProvider="SqlServer" Language="MySql">
365-
<DbType Name="text" To="text"/>
366-
<DbType Name="varchar" To="varchar"/>
367-
<DbType Name="nvarchar" To="varchar"/>
368-
<DbType Name="uniqueidentifier" To="char(36)"/>
369-
<DbType Name="date" To="datetime"/>
370-
<DbType Name="smalldatetime" To="datetime"/>
371-
<DbType Name="datetime" To="datetime"/>
372-
<DbType Name="datetime2" To="datetime"/>
373-
<DbType Name="time" To="datetime"/>
374-
<DbType Name="datetimeoffset" To="datetime"/>
375-
<DbType Name="tinyint" To="int"/>
376-
<DbType Name="smallint" To="int"/>
377-
<DbType Name="int" To="int"/>
378-
<DbType Name="bigint" To="bigint"/>
379-
<DbType Name="bit" To="bool"/>
380-
<DbType Name="char" To="char"/>
381-
<DbType Name="uniqueide" To="char(36)"/>
382-
<DbType Name="numeric" To="int"/>
383-
<DbType Name="integer" To="int"/>
384-
<DbType Name="money" To="decimal(18,2)"/>
385-
<DbType Name="real" To="decimal(18,2)"/>
386-
<DbType Name="single" To="int"/>
387-
<DbType Name="smallmoney" To="decimal(18,2)"/>
388-
<DbType Name="decimal" To="decimal(18,2)"/>
389-
<DbType Name="float" To="float"/>
390-
<DbType Name="number" To="decimal(18,2)"/>
391-
<DbType Name="boolean" To="bool"/>
392-
<DbType Name="long" To="bigint"/>
393-
<DbType Name="longtext" To="text"/>
394-
<DbType Name="timestamp" To="datetime"/>
395-
</Database>
396-
397364
<Database DbProvider="MySql" Language="PostgreSql">
398365
<DbType Name="text" To="text"/>
399366
<DbType Name="varchar" To="varchar"/>
@@ -892,4 +859,40 @@
892859
<DbType Name="yesno" To="boolean"/>
893860
</Database>
894861
<!-- TypeScript-Language End-->
862+
863+
<!-- Mysql-Language Start-->
864+
<Database DbProvider="SqlServer" Language="MySql">
865+
<DbType Name="text" To="text"/>
866+
<DbType Name="varchar" To="varchar"/>
867+
<DbType Name="nvarchar" To="varchar"/>
868+
<DbType Name="uniqueidentifier" To="char(36)"/>
869+
<DbType Name="date" To="datetime"/>
870+
<DbType Name="smalldatetime" To="datetime"/>
871+
<DbType Name="datetime" To="datetime"/>
872+
<DbType Name="datetime2" To="datetime"/>
873+
<DbType Name="time" To="datetime"/>
874+
<DbType Name="datetimeoffset" To="datetime"/>
875+
<DbType Name="tinyint" To="int"/>
876+
<DbType Name="smallint" To="int"/>
877+
<DbType Name="int" To="int"/>
878+
<DbType Name="bigint" To="bigint"/>
879+
<DbType Name="bit" To="bool"/>
880+
<DbType Name="char" To="char"/>
881+
<DbType Name="uniqueide" To="char(36)"/>
882+
<DbType Name="numeric" To="int"/>
883+
<DbType Name="integer" To="int"/>
884+
<DbType Name="money" To="decimal(18,2)"/>
885+
<DbType Name="real" To="decimal(18,2)"/>
886+
<DbType Name="single" To="int"/>
887+
<DbType Name="smallmoney" To="decimal(18,2)"/>
888+
<DbType Name="decimal" To="decimal(18,2)"/>
889+
<DbType Name="float" To="float"/>
890+
<DbType Name="number" To="decimal(18,2)"/>
891+
<DbType Name="boolean" To="bool"/>
892+
<DbType Name="long" To="bigint"/>
893+
<DbType Name="longtext" To="text"/>
894+
<DbType Name="timestamp" To="datetime"/>
895+
</Database>
896+
<!-- Mysql-Language End-->
897+
895898
</DbTypeMap>

0 commit comments

Comments
 (0)