增加支持在ResultMap中使用连续属性访问对结果集对象中的嵌套属性赋值; #255
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
功能改进 / Feature Enhancements
新增核心接口与实现 / Added Core Interface and Implementations
IPropertyHolder
接口,统一属性访问逻辑Added
IPropertyHolder
interface to unify property access logicPropertyHolder
类继承自IPropertyHolder
Modified
PropertyHolder
to inherit fromIPropertyHolder
PropertyChainHolder
类实现嵌套属性链支持Added
PropertyChainHolder
class to support nested property chains嵌套属性映射支持 / Nested Property Mapping Support
EntityDeserializer.ResolveProperty
方法,支持解析如NestedProp1.NestedProp2
的连续属性路径Modified
EntityDeserializer.ResolveProperty
to resolve chained property paths (e.g.,NestedProp1.NestedProp2
)EntityDeserializer.CreateDeserialize
方法,自动初始化空嵌套对象Modified
EntityDeserializer.CreateDeserialize
to auto-initialize null nested objects测试覆盖 / Testing
Added unit tests for nested property mapping
Validated multi-level object initialization and data integrity
影响范围 / Impact
IPropertyHolder.cs
,PropertyHolder.cs
,PropertyChainHolder.cs
,EntityDeserializer.cs
EntityDeserializerTest.cs
,AllPrimitive.xml
,NestedEntity.cs
示例场景 / Example Usage