v9.6.2017.0808 重构正向工程,基于映射表查找数据库字段类型到实体类型的映射
大石头
authored at
2017-08-08 21:38:06
X
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NewLife.Log;
namespace XCode.Transform
{
/// <summary>数据抽取接口</summary>
public interface IExtracter
{
#region 属性
/// <summary>名称</summary>
String Name { get; set; }
/// <summary>设置</summary>
IExtractSetting Setting { get; set; }
/// <summary>实体工厂</summary>
IEntityOperate Factory { get; set; }
/// <summary>获取 或 设置 时间字段</summary>
String FieldName { get; set; }
/// <summary>附加条件</summary>
String Where { get; set; }
#endregion
#region 方法
/// <summary>初始化</summary>
void Init();
#endregion
#region 抽取数据
/// <summary>抽取一批数据</summary>
/// <returns></returns>
IEntityList Fetch();
/// <summary>当前批数据处理完成,移动到下一块</summary>
void SaveNext();
#endregion
#region 日志
/// <summary>日志</summary>
ILog Log { get; set; }
#endregion
}
}
|