|
@@ -1,4 +1,4 @@
|
|
|
-using Masuit.LuceneEFCore.SearchEngine;
|
|
|
+using Masuit.LuceneEFCore.SearchEngine;
|
|
|
using System;
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
@@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|
|
namespace WebSearchDemo.Database
|
|
|
{
|
|
|
/// <summary>
|
|
|
- /// ÎÄÕÂ
|
|
|
+ /// æ–‡ç«
|
|
|
/// </summary>
|
|
|
[Table("Post")]
|
|
|
public class Post : LuceneIndexableBaseEntity
|
|
@@ -17,44 +17,44 @@ namespace WebSearchDemo.Database
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
- /// ±êÌâ
|
|
|
+ /// æ ‡é¢˜
|
|
|
/// </summary>
|
|
|
- [Required(ErrorMessage = "ÎÄÕ±êÌâ²»ÄÜΪ¿Õ£¡"), LuceneIndex]
|
|
|
+ [Required(ErrorMessage = "æ–‡ç« æ ‡é¢˜ä¸�能为空ï¼�"), LuceneIndex]
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// ×÷Õß
|
|
|
+ /// 作者
|
|
|
/// </summary>
|
|
|
- [Required, MaxLength(24, ErrorMessage = "×÷ÕßÃû×֧³Ö24¸ö×Ö·û£¡"), LuceneIndex]
|
|
|
+ [Required, MaxLength(24, ErrorMessage = "作者å��最长支æŒ�24个å—符ï¼�"), LuceneIndex]
|
|
|
public string Author { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// ÄÚÈÝ
|
|
|
+ /// 内容
|
|
|
/// </summary>
|
|
|
- [Required(ErrorMessage = "ÎÄÕÂÄÚÈݲ»ÄÜΪ¿Õ£¡"), LuceneIndex(IsHtml = true)]
|
|
|
+ [Required(ErrorMessage = "æ–‡ç« å†…å®¹ä¸�能为空ï¼�"), LuceneIndex(IsHtml = true)]
|
|
|
public string Content { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// ·¢±íʱ¼ä
|
|
|
+ /// �表时间
|
|
|
/// </summary>
|
|
|
public DateTime PostDate { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// ×÷ÕßÓÊÏä
|
|
|
+ /// 作者邮箱
|
|
|
/// </summary>
|
|
|
- [Required(ErrorMessage = "×÷ÕßÓÊÏä²»ÄÜΪ¿Õ£¡"), LuceneIndex]
|
|
|
+ [Required(ErrorMessage = "作者邮箱�能为空�"), LuceneIndex]
|
|
|
public string Email { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// ±êÇ©
|
|
|
+ /// æ ‡ç¾
|
|
|
/// </summary>
|
|
|
- [StringLength(256, ErrorMessage = "±êÇ©×î´óÔÊÐí255¸ö×Ö·û"), LuceneIndex]
|
|
|
+ [StringLength(256, ErrorMessage = "æ ‡ç¾æœ€å¤§å…�许255个å—符"), LuceneIndex]
|
|
|
public string Label { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// ÎÄÕ¹ؼü´Ê
|
|
|
+ /// æ–‡ç« å…³é”®è¯�
|
|
|
/// </summary>
|
|
|
- [StringLength(256, ErrorMessage = "ÎÄÕ¹ؼü´Ê×î´óÔÊÐí255¸ö×Ö·û"), LuceneIndex]
|
|
|
+ [StringLength(256, ErrorMessage = "æ–‡ç« å…³é”®è¯�最大å…�许255个å—符"), LuceneIndex]
|
|
|
public string Keyword { get; set; }
|
|
|
|
|
|
}
|