-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix TypeDeserializer bug when resultType is String
- Loading branch information
Showing
7 changed files
with
119 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,99 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<SmartSqlMapConfig xmlns="http://SmartSql.net/schemas/SmartSqlMapConfig.xsd"> | ||
<Settings IgnoreParameterCase="false" ParameterPrefix="$" IsCacheEnabled="true" EnablePropertyChangedTrack="true" IgnoreDbNull="true"/> | ||
<Properties> | ||
<!-- <Property Name="Redis" Value="localhost"/>--> | ||
<Property Name="DbProvider" Value="MsSqlServer"/> | ||
<Property Name="ConnectionString" Value="Data Source=.;Initial Catalog=SmartSqlTestDB;Integrated Security=True"/> | ||
<Property Name="JsonTypeHandler`" Value="SmartSql.TypeHandler.JsonTypeHandler`1,SmartSql.TypeHandler"/> | ||
<Property Name="JsonTypeHandler" Value="SmartSql.TypeHandler.JsonTypeHandler,SmartSql.TypeHandler"/> | ||
<Property Name="ScriptBuilder" Value="SmartSql.ScriptTag.ScriptBuilder,SmartSql.ScriptTag"/> | ||
<Property Name="RedisCacheProvider" Value="SmartSql.Cache.Redis.RedisCacheProvider,SmartSql.Cache.Redis"/> | ||
</Properties> | ||
<AutoConverters> | ||
<AutoConverter Name="NoneConverter"> | ||
<Tokenizer Name="None"/> | ||
<Converter Name="None"/> | ||
</AutoConverter> | ||
<AutoConverter Name="Default" Default="true"> | ||
<Tokenizer Name="Default"/> | ||
<Converter Name="Pascal"/> | ||
</AutoConverter> | ||
<AutoConverter Name="PascalConverter"> | ||
<Tokenizer Name="Default"> | ||
<Properties> | ||
<Property Name="IgnorePrefix" Value="" /> | ||
<Property Name="Delimiter" Value="_" /> | ||
<Property Name="UppercaseSplit" Value="false" /> | ||
</Properties> | ||
</Tokenizer> | ||
<Converter Name="Pascal"/> | ||
</AutoConverter> | ||
<AutoConverter Name="DelimiterConverter"> | ||
<Tokenizer Name="Default"> | ||
<Properties> | ||
<Property Name="IgnorePrefix" Value="col_" /> | ||
<Property Name="Delimiter" Value="_" /> | ||
<Property Name="UppercaseSplit" Value="true" /> | ||
</Properties> | ||
</Tokenizer> | ||
<Converter Name="Delimiter"> | ||
<Properties> | ||
<Property Name="Prefix" Value="Col_" /> | ||
<Property Name="Delimiter" Value="_"/> | ||
<Property Name="Mode" Value="FirstUpper"/> | ||
</Properties> | ||
</Converter> | ||
</AutoConverter> | ||
</AutoConverters> | ||
<Database> | ||
<!-- MsSqlServer: Microsoft.Data.SqlClient , SqlServer: System.Data.SqlClinet --> | ||
<DbProvider Name="${DbProvider}"/> | ||
<Write Name="WriteDB" ConnectionString="${ConnectionString}"/> | ||
<Read Name="ReadDb-1" ConnectionString="${ConnectionString}" Weight="100"/> | ||
<Read Name="ReadDb-2" ConnectionString="${ConnectionString}" Weight="100"/> | ||
</Database> | ||
<TypeHandlers> | ||
<TypeHandler PropertyType="SmartSql.Test.Entities.UserInfo,SmartSql.Test" Type="${JsonTypeHandler`}"> | ||
<Properties> | ||
<Property Name="DateFormat" Value="yyyy-MM-dd mm:ss"/> | ||
<Property Name="NamingStrategy" Value="Camel"/> | ||
</Properties> | ||
</TypeHandler> | ||
<TypeHandler Name="AnsiStringTypeHandler" Type="SmartSql.TypeHandlers.StringTypeHandler,SmartSql"> | ||
<Properties> | ||
<Property Name="DbType" Value="AnsiString"/> | ||
</Properties> | ||
</TypeHandler> | ||
<TypeHandler Name="AnsiStringFixedLengthTypeHandler" Type="SmartSql.TypeHandlers.StringTypeHandler,SmartSql"> | ||
<Properties> | ||
<Property Name="DbType" Value="AnsiStringFixedLength"/> | ||
</Properties> | ||
</TypeHandler> | ||
<TypeHandler Name="Json" Type="${JsonTypeHandler}"></TypeHandler> | ||
</TypeHandlers> | ||
<TagBuilders> | ||
<TagBuilder Name="Script" Type="${ScriptBuilder}"/> | ||
</TagBuilders> | ||
<IdGenerators> | ||
<IdGenerator Name="SnowflakeId" Type="SnowflakeId"> | ||
<Properties> | ||
<Property Name="WorkerIdBits" Value="9"/> | ||
<Property Name="WorkerId" Value="511"/> | ||
<Property Name="Sequence" Value="14"/> | ||
</Properties> | ||
</IdGenerator> | ||
<IdGenerator Name="DbSequence" Type="DbSequence"> | ||
<Properties> | ||
<Property Name="Step" Value="10"/> | ||
<Property Name="SequenceSql" Value="Select Next Value For IdSequence;"/> | ||
</Properties> | ||
</IdGenerator> | ||
</IdGenerators> | ||
<SmartSqlMaps> | ||
<SmartSqlMap Path="Maps" Type="Directory"></SmartSqlMap> | ||
</SmartSqlMaps> | ||
<Settings IgnoreParameterCase="false" ParameterPrefix="$" IsCacheEnabled="true" EnablePropertyChangedTrack="true" | ||
IgnoreDbNull="true"/> | ||
<Properties> | ||
<!-- <Property Name="Redis" Value="localhost"/>--> | ||
<Property Name="DbProvider" Value="MsSqlServer"/> | ||
<Property Name="ConnectionString" | ||
Value="Data Source=.;Initial Catalog=SmartSqlTestDB;Integrated Security=True"/> | ||
<Property Name="JsonTypeHandler`" Value="SmartSql.TypeHandler.JsonTypeHandler`1,SmartSql.TypeHandler"/> | ||
<Property Name="JsonTypeHandler" Value="SmartSql.TypeHandler.JsonTypeHandler,SmartSql.TypeHandler"/> | ||
<Property Name="ScriptBuilder" Value="SmartSql.ScriptTag.ScriptBuilder,SmartSql.ScriptTag"/> | ||
<Property Name="RedisCacheProvider" Value="SmartSql.Cache.Redis.RedisCacheProvider,SmartSql.Cache.Redis"/> | ||
</Properties> | ||
<AutoConverters> | ||
<AutoConverter Name="NoneConverter"> | ||
<Tokenizer Name="None"/> | ||
<Converter Name="None"/> | ||
</AutoConverter> | ||
<AutoConverter Name="Default" Default="true"> | ||
<Tokenizer Name="Default"/> | ||
<Converter Name="Pascal"/> | ||
</AutoConverter> | ||
<AutoConverter Name="PascalConverter"> | ||
<Tokenizer Name="Default"> | ||
<Properties> | ||
<Property Name="IgnorePrefix" Value=""/> | ||
<Property Name="Delimiter" Value="_"/> | ||
<Property Name="UppercaseSplit" Value="false"/> | ||
</Properties> | ||
</Tokenizer> | ||
<Converter Name="Pascal"/> | ||
</AutoConverter> | ||
<AutoConverter Name="DelimiterConverter"> | ||
<Tokenizer Name="Default"> | ||
<Properties> | ||
<Property Name="IgnorePrefix" Value="col_"/> | ||
<Property Name="Delimiter" Value="_"/> | ||
<Property Name="UppercaseSplit" Value="true"/> | ||
</Properties> | ||
</Tokenizer> | ||
<Converter Name="Delimiter"> | ||
<Properties> | ||
<Property Name="Prefix" Value="Col_"/> | ||
<Property Name="Delimiter" Value="_"/> | ||
<Property Name="Mode" Value="FirstUpper"/> | ||
</Properties> | ||
</Converter> | ||
</AutoConverter> | ||
</AutoConverters> | ||
<Database> | ||
<!-- MsSqlServer: Microsoft.Data.SqlClient , SqlServer: System.Data.SqlClinet --> | ||
<DbProvider Name="${DbProvider}"/> | ||
<Write Name="WriteDB" ConnectionString="${ConnectionString}"/> | ||
<Read Name="ReadDb-1" ConnectionString="${ConnectionString}" Weight="100"/> | ||
<Read Name="ReadDb-2" ConnectionString="${ConnectionString}" Weight="100"/> | ||
</Database> | ||
<TypeHandlers> | ||
<TypeHandler PropertyType="SmartSql.Test.Entities.UserInfo,SmartSql.Test" Type="${JsonTypeHandler`}"> | ||
<Properties> | ||
<Property Name="DateFormat" Value="yyyy-MM-dd mm:ss"/> | ||
<Property Name="NamingStrategy" Value="Camel"/> | ||
</Properties> | ||
</TypeHandler> | ||
<TypeHandler Name="AnsiStringTypeHandler" Type="SmartSql.TypeHandlers.StringTypeHandler,SmartSql"> | ||
<Properties> | ||
<Property Name="DbType" Value="AnsiString"/> | ||
</Properties> | ||
</TypeHandler> | ||
<TypeHandler Name="AnsiStringFixedLengthTypeHandler" Type="SmartSql.TypeHandlers.StringTypeHandler,SmartSql"> | ||
<Properties> | ||
<Property Name="DbType" Value="AnsiStringFixedLength"/> | ||
</Properties> | ||
</TypeHandler> | ||
<TypeHandler Name="Json" Type="${JsonTypeHandler}"></TypeHandler> | ||
|
||
</TypeHandlers> | ||
<TagBuilders> | ||
<TagBuilder Name="Script" Type="${ScriptBuilder}"/> | ||
</TagBuilders> | ||
<IdGenerators> | ||
<IdGenerator Name="SnowflakeId" Type="SnowflakeId"> | ||
<Properties> | ||
<Property Name="WorkerIdBits" Value="9"/> | ||
<Property Name="WorkerId" Value="511"/> | ||
<Property Name="Sequence" Value="14"/> | ||
</Properties> | ||
</IdGenerator> | ||
<IdGenerator Name="DbSequence" Type="DbSequence"> | ||
<Properties> | ||
<Property Name="Step" Value="10"/> | ||
<Property Name="SequenceSql" Value="Select Next Value For IdSequence;"/> | ||
</Properties> | ||
</IdGenerator> | ||
</IdGenerators> | ||
<SmartSqlMaps> | ||
<SmartSqlMap Path="Maps" Type="Directory"></SmartSqlMap> | ||
</SmartSqlMaps> | ||
</SmartSqlMapConfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters