mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	- 修复 Guid -> MapType(string) 在 FreeSql.DbContext 的类型转换错误;
This commit is contained in:
		@@ -55,6 +55,7 @@ namespace FreeSql.Extensions.EntityUtil
 | 
			
		||||
                    {
 | 
			
		||||
                        Expression newguid = Expression.Call(MethodFreeUtilNewMongodbId);
 | 
			
		||||
                        if (pks[a].Attribute.MapType != pks[a].CsType) newguid = FreeSql.Internal.Utils.GetDataReaderValueBlockExpression(pks[a].CsType, newguid);
 | 
			
		||||
                        if (pks[a].CsType == typeof(Guid)) newguid = Expression.Convert(newguid, typeof(Guid));
 | 
			
		||||
                        if (pks[a].CsType == typeof(Guid?)) newguid = Expression.Convert(newguid, typeof(Guid?));
 | 
			
		||||
                        expthen = Expression.Block(
 | 
			
		||||
                            new Expression[]{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user