C# 实体默认返回格式化日期
/// <summary> /// 创建人名 /// </summary> [NotMapped] public string CreateUserName { get; set; } /// <summary> /// 创建时间 /// </summary> [NotMapped] public string CreateTimeString { get { return CreateTime.ToString("yyyy-MM-dd HH:mm:ss"); } }