mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	v3.2.664 #1155
This commit is contained in:
		@@ -9,7 +9,7 @@
 | 
				
			|||||||
	</PropertyGroup>
 | 
						</PropertyGroup>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	<PropertyGroup>
 | 
						<PropertyGroup>
 | 
				
			||||||
		<Version>3.2.663</Version>
 | 
							<Version>3.2.664</Version>
 | 
				
			||||||
	</PropertyGroup>
 | 
						</PropertyGroup>
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	<ItemGroup>
 | 
						<ItemGroup>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -795,5 +795,14 @@
 | 
				
			|||||||
            <param name="that"></param>
 | 
					            <param name="that"></param>
 | 
				
			||||||
            <returns></returns>
 | 
					            <returns></returns>
 | 
				
			||||||
        </member>
 | 
					        </member>
 | 
				
			||||||
 | 
					        <member name="M:Microsoft.Extensions.DependencyInjection.FreeSqlRepositoryDependencyInjection.AddFreeRepository(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{FreeSql.FluentDataFilter},System.Reflection.Assembly[])">
 | 
				
			||||||
 | 
					            <summary>
 | 
				
			||||||
 | 
					            批量注入 Repository,可以参考代码自行调整
 | 
				
			||||||
 | 
					            </summary>
 | 
				
			||||||
 | 
					            <param name="services"></param>
 | 
				
			||||||
 | 
					            <param name="globalDataFilter"></param>
 | 
				
			||||||
 | 
					            <param name="assemblies"></param>
 | 
				
			||||||
 | 
					            <returns></returns>
 | 
				
			||||||
 | 
					        </member>
 | 
				
			||||||
    </members>
 | 
					    </members>
 | 
				
			||||||
</doc>
 | 
					</doc>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -648,14 +648,18 @@ namespace FreeSql.Internal
 | 
				
			|||||||
                                {
 | 
					                                {
 | 
				
			||||||
                                    var cbs = LocalGetComment(prop.DeclaringType, level + 1);
 | 
					                                    var cbs = LocalGetComment(prop.DeclaringType, level + 1);
 | 
				
			||||||
                                    if (cbs != null && cbs.TryGetValue(prop.Name, out var otherComment) && string.IsNullOrEmpty(otherComment) == false)
 | 
					                                    if (cbs != null && cbs.TryGetValue(prop.Name, out var otherComment) && string.IsNullOrEmpty(otherComment) == false)
 | 
				
			||||||
                                        dic.Add(prop.Name, otherComment);
 | 
					                                    {
 | 
				
			||||||
 | 
					                                        if (dic.ContainsKey(prop.Name)) dic[prop.Name] = otherComment;
 | 
				
			||||||
 | 
					                                        else dic.Add(prop.Name, otherComment);
 | 
				
			||||||
 | 
					                                    }
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
                                continue;
 | 
					                                continue;
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                            var comment = node.InnerXml.Trim(' ', '\r', '\n', '\t');
 | 
					                            var comment = node.InnerXml.Trim(' ', '\r', '\n', '\t');
 | 
				
			||||||
                            if (string.IsNullOrEmpty(comment)) continue;
 | 
					                            if (string.IsNullOrEmpty(comment)) continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                            dic.Add(prop.Name, comment);
 | 
					                            if (dic.ContainsKey(prop.Name)) dic[prop.Name] = comment;
 | 
				
			||||||
 | 
					                            else dic.Add(prop.Name, comment);
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user