This commit is contained in:
owenchen committed 2026-05-29 16:52:44 +08:00
1 parent 4ec2502778
commit 330515ff2c
1 file changed
+23 -23
@@ -6,25 +6,17 @@ namespace CloudBuilder.AI.Entity
{
[TypeScript]
[Table("ai_chapter_person")]
public class AiChapterPersonEntity : EntityBase<int>
public class AiChapterPersonEntity : EntityBase<long>
{
public AiChapterPersonEntity()
{
}
[Column("created_datetime")]
public DateTime CreatedDatetime { get; set; }
[Column("created_by")]
public string CreatedBy { get; set; }
[Column("updated_datetime")]
public DateTime UpdatedDatetime { get; set; }
[Column("updated_by")]
public string UpdatedBy { get; set; }
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Column("person_id")]
public int PersonId { get; set; }
public long PersonId { get; set; }
[Column("chapter_id")]
public int ChapterId { get; set; }
[Column("paragraph_index")]
@@ -35,31 +27,39 @@ namespace CloudBuilder.AI.Entity
public string PersonName { get; set; }
[Column("person_mapping")]
public string? PersonMapping { get; set; }
[Column("created_datetime")]
public DateTime CreatedDatetime { get; set; }
[Column("created_by")]
public string CreatedBy { get; set; }
[Column("updated_datetime")]
public DateTime UpdatedDatetime { get; set; }
[Column("updated_by")]
public string UpdatedBy { get; set; }
public const string CREATED_DATETIME = "CreatedDatetime";
public const string CREATED_BY = "CreatedBy";
public const string UPDATED_DATETIME = "UpdatedDatetime";
public const string UPDATED_BY = "UpdatedBy";
public const string PERSON_ID = "PersonId";
public const string CHAPTER_ID = "ChapterId";
public const string PARAGRAPH_INDEX = "ParagraphIndex";
public const string ORDER_INDEX = "OrderIndex";
public const string PERSON_NAME = "PersonName";
public const string PERSON_MAPPING = "PersonMapping";
public const string CREATED_DATETIME = "CreatedDatetime";
public const string CREATED_BY = "CreatedBy";
public const string UPDATED_DATETIME = "UpdatedDatetime";
public const string UPDATED_BY = "UpdatedBy";
public const string DB_NAME_AI_CHAPTER_PERSON = "ai_chapter_person";
public const string DB_NAME_FIELDS="created_datetime,created_by,updated_datetime,updated_by,person_id,chapter_id,paragraph_index,order_index,person_name,person_mapping";
public const string DB_NAME_FIELDS="person_id,chapter_id,paragraph_index,order_index,person_name,person_mapping,created_datetime,created_by,updated_datetime,updated_by";
public const string DB_CREATED_DATETIME = "created_datetime";
public const string DB_CREATED_BY = "created_by";
public const string DB_UPDATED_DATETIME = "updated_datetime";
public const string DB_UPDATED_BY = "updated_by";
public const string DB_PERSON_ID = "person_id";
public const string DB_CHAPTER_ID = "chapter_id";
public const string DB_PARAGRAPH_INDEX = "paragraph_index";
public const string DB_ORDER_INDEX = "order_index";
public const string DB_PERSON_NAME = "person_name";
public const string DB_PERSON_MAPPING = "person_mapping";
public const string DB_CREATED_DATETIME = "created_datetime";
public const string DB_CREATED_BY = "created_by";
public const string DB_UPDATED_DATETIME = "updated_datetime";
public const string DB_UPDATED_BY = "updated_by";
public static AiChapterPersonEntity GetInstance()
@@ -79,16 +79,16 @@ namespace CloudBuilder.AI.Entity
throw new NullReferenceException("Source entity is null.");
}
this.CreatedDatetime = source.CreatedDatetime;
this.CreatedBy = source.CreatedBy;
this.UpdatedDatetime = source.UpdatedDatetime;
this.UpdatedBy = source.UpdatedBy;
this.PersonId = source.PersonId;
this.ChapterId = source.ChapterId;
this.ParagraphIndex = source.ParagraphIndex;
this.OrderIndex = source.OrderIndex;
this.PersonName = source.PersonName;
this.PersonMapping = source.PersonMapping;
this.CreatedDatetime = source.CreatedDatetime;
this.CreatedBy = source.CreatedBy;
this.UpdatedDatetime = source.UpdatedDatetime;
this.UpdatedBy = source.UpdatedBy;
if (includeSystemFields)
{