ow
This commit is contained in:
parent
cfe55502cf
commit
fd48c2eb7d
@ -13,57 +13,61 @@ namespace CloudBuilder.AI.Entity
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
[Column("created_datetime")]
|
|
||||||
public DateTime CreatedDatetime { get; set; }
|
|
||||||
[Column("sentence_index")]
|
|
||||||
public int SentenceIndex { get; set; }
|
|
||||||
[Column("order_index")]
|
|
||||||
public int OrderIndex { get; set; }
|
|
||||||
[Column("person_name")]
|
[Column("person_name")]
|
||||||
public string PersonName { get; set; }
|
public string PersonName { get; set; }
|
||||||
[Column("person_mapping")]
|
[Column("person_mapping")]
|
||||||
public string? PersonMapping { get; set; }
|
public string? PersonMapping { get; set; }
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
[Column("person_id")]
|
||||||
|
public long PersonId { get; set; }
|
||||||
|
[Column("book_id")]
|
||||||
|
public string BookId { get; set; }
|
||||||
|
[Column("chapter_id")]
|
||||||
|
public int ChapterId { get; set; }
|
||||||
|
[Column("paragraph_index")]
|
||||||
|
public long ParagraphIndex { get; set; }
|
||||||
|
[Column("sentence_index")]
|
||||||
|
public int SentenceIndex { get; set; }
|
||||||
|
[Column("order_index")]
|
||||||
|
public int OrderIndex { get; set; }
|
||||||
|
[Column("created_datetime")]
|
||||||
|
public DateTime CreatedDatetime { get; set; }
|
||||||
[Column("created_by")]
|
[Column("created_by")]
|
||||||
public string CreatedBy { get; set; }
|
public string CreatedBy { get; set; }
|
||||||
[Column("updated_datetime")]
|
[Column("updated_datetime")]
|
||||||
public DateTime UpdatedDatetime { get; set; }
|
public DateTime UpdatedDatetime { get; set; }
|
||||||
[Column("updated_by")]
|
[Column("updated_by")]
|
||||||
public string UpdatedBy { get; set; }
|
public string UpdatedBy { get; set; }
|
||||||
[Key]
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
||||||
[Column("person_id")]
|
|
||||||
public long PersonId { get; set; }
|
|
||||||
[Column("chapter_id")]
|
|
||||||
public int ChapterId { get; set; }
|
|
||||||
[Column("paragraph_index")]
|
|
||||||
public long ParagraphIndex { get; set; }
|
|
||||||
|
|
||||||
public const string CREATED_DATETIME = "CreatedDatetime";
|
|
||||||
public const string SENTENCE_INDEX = "SentenceIndex";
|
|
||||||
public const string ORDER_INDEX = "OrderIndex";
|
|
||||||
public const string PERSON_NAME = "PersonName";
|
public const string PERSON_NAME = "PersonName";
|
||||||
public const string PERSON_MAPPING = "PersonMapping";
|
public const string PERSON_MAPPING = "PersonMapping";
|
||||||
|
public const string PERSON_ID = "PersonId";
|
||||||
|
public const string BOOK_ID = "BookId";
|
||||||
|
public const string CHAPTER_ID = "ChapterId";
|
||||||
|
public const string PARAGRAPH_INDEX = "ParagraphIndex";
|
||||||
|
public const string SENTENCE_INDEX = "SentenceIndex";
|
||||||
|
public const string ORDER_INDEX = "OrderIndex";
|
||||||
|
public const string CREATED_DATETIME = "CreatedDatetime";
|
||||||
public const string CREATED_BY = "CreatedBy";
|
public const string CREATED_BY = "CreatedBy";
|
||||||
public const string UPDATED_DATETIME = "UpdatedDatetime";
|
public const string UPDATED_DATETIME = "UpdatedDatetime";
|
||||||
public const string UPDATED_BY = "UpdatedBy";
|
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 DB_NAME_AI_CHAPTER_PERSON = "ai_chapter_person";
|
public const string DB_NAME_AI_CHAPTER_PERSON = "ai_chapter_person";
|
||||||
public const string DB_NAME_FIELDS="created_datetime,sentence_index,order_index,person_name,person_mapping,created_by,updated_datetime,updated_by,person_id,chapter_id,paragraph_index";
|
public const string DB_NAME_FIELDS="person_name,person_mapping,person_id,book_id,chapter_id,paragraph_index,sentence_index,order_index,created_datetime,created_by,updated_datetime,updated_by";
|
||||||
|
|
||||||
public const string DB_CREATED_DATETIME = "created_datetime";
|
|
||||||
public const string DB_SENTENCE_INDEX = "sentence_index";
|
|
||||||
public const string DB_ORDER_INDEX = "order_index";
|
|
||||||
public const string DB_PERSON_NAME = "person_name";
|
public const string DB_PERSON_NAME = "person_name";
|
||||||
public const string DB_PERSON_MAPPING = "person_mapping";
|
public const string DB_PERSON_MAPPING = "person_mapping";
|
||||||
|
public const string DB_PERSON_ID = "person_id";
|
||||||
|
public const string DB_BOOK_ID = "book_id";
|
||||||
|
public const string DB_CHAPTER_ID = "chapter_id";
|
||||||
|
public const string DB_PARAGRAPH_INDEX = "paragraph_index";
|
||||||
|
public const string DB_SENTENCE_INDEX = "sentence_index";
|
||||||
|
public const string DB_ORDER_INDEX = "order_index";
|
||||||
|
public const string DB_CREATED_DATETIME = "created_datetime";
|
||||||
public const string DB_CREATED_BY = "created_by";
|
public const string DB_CREATED_BY = "created_by";
|
||||||
public const string DB_UPDATED_DATETIME = "updated_datetime";
|
public const string DB_UPDATED_DATETIME = "updated_datetime";
|
||||||
public const string DB_UPDATED_BY = "updated_by";
|
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 static AiChapterPersonEntity GetInstance()
|
public static AiChapterPersonEntity GetInstance()
|
||||||
@ -83,17 +87,18 @@ namespace CloudBuilder.AI.Entity
|
|||||||
throw new NullReferenceException("Source entity is null.");
|
throw new NullReferenceException("Source entity is null.");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.CreatedDatetime = source.CreatedDatetime;
|
|
||||||
this.SentenceIndex = source.SentenceIndex;
|
|
||||||
this.OrderIndex = source.OrderIndex;
|
|
||||||
this.PersonName = source.PersonName;
|
this.PersonName = source.PersonName;
|
||||||
this.PersonMapping = source.PersonMapping;
|
this.PersonMapping = source.PersonMapping;
|
||||||
|
this.PersonId = source.PersonId;
|
||||||
|
this.BookId = source.BookId;
|
||||||
|
this.ChapterId = source.ChapterId;
|
||||||
|
this.ParagraphIndex = source.ParagraphIndex;
|
||||||
|
this.SentenceIndex = source.SentenceIndex;
|
||||||
|
this.OrderIndex = source.OrderIndex;
|
||||||
|
this.CreatedDatetime = source.CreatedDatetime;
|
||||||
this.CreatedBy = source.CreatedBy;
|
this.CreatedBy = source.CreatedBy;
|
||||||
this.UpdatedDatetime = source.UpdatedDatetime;
|
this.UpdatedDatetime = source.UpdatedDatetime;
|
||||||
this.UpdatedBy = source.UpdatedBy;
|
this.UpdatedBy = source.UpdatedBy;
|
||||||
this.PersonId = source.PersonId;
|
|
||||||
this.ChapterId = source.ChapterId;
|
|
||||||
this.ParagraphIndex = source.ParagraphIndex;
|
|
||||||
|
|
||||||
if (includeSystemFields)
|
if (includeSystemFields)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user