You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.1 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ZKLT.Hadoop.Model
{
/// <summary>
/// 文件
/// </summary>
[HDP_Table(Key = "HDP_File", Description = "文件")]
public class HDP_File
{
private string? _Id;
private string? _FileName;
private string? _ContentType;
private int? _FileSize;
private byte[]? _Data;
private DateTime? createDate;
/// <summary>
/// 编号
/// </summary>
[HDP_Column(Key = "Id", Description = "编号",Length = 100,DataType = HDP_ColumnDataType.VARCHAR,IsPrimary = true,InsertDefault = "UUID()")]
public string? Id { get => _Id; set => _Id = value; }
/// <summary>
/// 文件名
/// </summary>
[HDP_Column(Key = "FileName",Description = "文件名",Length = 100, DataType = HDP_ColumnDataType.VARCHAR)]
public string? FileName { get => _FileName; set => _FileName = value; }
/// <summary>
/// 文件类型
/// </summary>
[HDP_Column(Key = "ContentType",Description = "文件类型",Length = 100,DataType = HDP_ColumnDataType.VARCHAR)]
public string? ContentType { get => _ContentType; set => _ContentType = value; }
/// <summary>
/// 文件数据
/// </summary>
[HDP_Column(Key = "Data",Description = "文件数据",DataType = HDP_ColumnDataType.LONGBLOB)]
public byte[]? Data { get => _Data; set => _Data = value; }
/// <summary>
/// 创建日期
/// </summary>
[HDP_Column(Key = "CreateDate", Description = "创建日期",DataType = HDP_ColumnDataType.DATETIME)]
public DateTime? CreateDate { get => createDate; set => createDate = value; }
/// <summary>
/// 文件大小
/// </summary>
[HDP_Column(Key = "FileSize",Description = "文件大小",DataType = HDP_ColumnDataType.INT)]
public int? FileSize { get => _FileSize; set => _FileSize = value; }
}
}