/// <summary> /// 嵌套类,不加table坐标 /// </summary> /// <param name="entity"></param> /// <param name="value"></param> /// <param name="rect">坐标系原点</param> /// <returns></returns> public bool TryMapValue(TEntity entity, ITable value, TableRect rect) { var relrect = rect.GetRelativeCoordinateRect(Rect); if (!propertyConverter.TryConvert(relrect, value, out TProperty convertedValue)) { return(false); } propertySetter(entity, convertedValue); return(true); }
public bool TryConverValue(TableRect rect, ITable table, out TTargetType value) { TableRect relrect = rect.GetRelativeCoordinateRect(Rect); return(ConverterMapping.TryConvert(relrect, table.GetTable(relrect), out value)); }