public BaseReadAndWriteTAttribute(string name, AttributeReadAndWriteTypeEnum type = AttributeReadAndWriteTypeEnum.ReadAndWrite) { this.name = name; this.type = type; }
/// <summary> /// 实体属性映射 Excel 列名 /// </summary> /// <param name="name">Excel 列名</param> public ExcelTAttribute(string name, AttributeReadAndWriteTypeEnum type = AttributeReadAndWriteTypeEnum.ReadAndWrite) : base(name, type) { this.index = -1; }
/// <summary> /// 实体属性映射 DataTable 列名 /// </summary> /// <param name="name">属性所对应的 DataTable 列名称</param> public DataTableTAttribute(string name, AttributeReadAndWriteTypeEnum type = AttributeReadAndWriteTypeEnum.ReadAndWrite) : base(name, type) { }
/// <summary> /// 实体属性映射 Excel 列索引 /// </summary> /// <param name="index">Excel 列索引</param> public ExcelTAttribute(int index, AttributeReadAndWriteTypeEnum type = AttributeReadAndWriteTypeEnum.ReadAndWrite) : base(null, type) { this.index = index; }
/// <summary> /// 实体属性映射 Txt 列索引 /// </summary> /// <param name="index">列索引,索引 从 1 开始</param> public TxtTAttribute(int index, AttributeReadAndWriteTypeEnum type = AttributeReadAndWriteTypeEnum.ReadAndWrite) { this.index = index; this.type = type; }