using System; using System.Collections; using System.Collections.Generic; using BS.Shared; using BS.Shared.Core; using BS.Shared.Interface; namespace BeWo.Data.Entities { public class AiPromptbausteinPrompt : BeWoEntityBase, IAiPromptbausteinPrompt { public AiPromptbausteinPrompt() { _Tid = TableID.AiPromptbausteinPrompt; } public virtual string Title { get; set; } public virtual string Description { get; set; } public virtual long? ParentFolderOid { get; set; } public virtual long? CreatorOid { get; set; } public virtual bool IsPublic { get; set; } public virtual int Position { get; set; } public virtual string Prompt { get; set; } public virtual bool ShowPrompt { get; set; } public virtual bool ShowPromptByTenant { get; set; } public virtual bool IsOwnsoftPrompt { get; set; } public virtual string OwnsoftRefLink { get; set; } public virtual string PromptId { get; set; } public virtual int SamplesCount { get; set; } public virtual AiActionType ActionType { get; set; } public virtual IList UserFavorites { get; set;} = new List(); } public class AiPromptbausteinPromptPromptIdComparer : IEqualityComparer { public bool Equals(AiPromptbausteinPrompt x, AiPromptbausteinPrompt y) { return y is AiPromptbausteinPrompt ent && x.PromptId == ent.PromptId && x.ActionType == ent.ActionType; } public int GetHashCode(AiPromptbausteinPrompt obj) { return (obj.PromptId, obj.ActionType).GetHashCode(); } } public class AiPromptbausteinPromptComparer2 : IEqualityComparer { public bool Equals(AiPromptbausteinPrompt x, AiPromptbausteinPrompt y) { return y is AiPromptbausteinPrompt ent && x.PromptId == ent.PromptId && x.Title == ent.Title && x.Description == ent.Description && x.OwnsoftRefLink == ent.OwnsoftRefLink && x.Prompt == ent.Prompt && x.ActionType == ent.ActionType && x.SamplesCount == ent.SamplesCount && x.ShowPrompt == ent.ShowPrompt && x.ShowPromptByTenant == ent.ShowPromptByTenant; } public int GetHashCode(AiPromptbausteinPrompt obj) { return (obj.PromptId, obj.ActionType, obj.Title, obj.Description, obj.OwnsoftRefLink, obj.Prompt, obj.SamplesCount).GetHashCode(); } } }