Files

19 lines
672 B
C#

using XP.ReportEngine.Models;
namespace XP.ReportEngine.Interfaces
{
/// <summary>
/// 数据绑定器接口 | Data binder interface
/// </summary>
public interface IDataBinder
{
/// <summary>
/// 将上下文数据绑定到模板 | Bind context data to template
/// </summary>
/// <param name="template">报告模板 | Report template</param>
/// <param name="context">报告上下文 | Report context</param>
/// <returns>绑定后的模板(元素内容已替换)| Bound template with resolved content</returns>
ReportTemplate Bind(ReportTemplate template, ReportContext context);
}
}