Files
BeWoPlaner/Data/Entities/AiPromptbausteinPrompt.cs

85 lines
2.2 KiB
C#
Raw Normal View History

2026-01-09 15:11:23 +01:00
using System;
using System.Collections;
2026-01-09 15:11:23 +01:00
using System.Collections.Generic;
using BS.Shared;
2026-01-16 13:33:59 +01:00
using BS.Shared.Interface;
2026-01-09 15:11:23 +01:00
namespace BeWo.Data.Entities
{
2026-01-16 13:33:59 +01:00
public class AiPromptbausteinPrompt : BeWoEntityBase, IAiPromptbausteinPrompt
2026-01-09 15:11:23 +01:00
{
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; }
2026-01-09 15:11:23 +01:00
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; }
2026-01-23 15:32:06 +01:00
2026-01-27 18:07:59 +01:00
public virtual string PromptId { get; set; }
2026-02-20 12:23:28 +01:00
public virtual int SamplesCount { get; set; }
public virtual AiActionType ActionType { get; set; }
public virtual IList<Employee> UserFavorites { get; set;} = new List<Employee>();
2026-01-09 15:11:23 +01:00
}
public class AiPromptbausteinPromptPromptIdComparer : IEqualityComparer<AiPromptbausteinPrompt>
{
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();
}
}
2026-02-11 11:48:13 +01:00
public class AiPromptbausteinPromptComparer2 : IEqualityComparer<AiPromptbausteinPrompt>
{
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 &&
2026-02-20 12:23:28 +01:00
x.ActionType == ent.ActionType &&
2026-04-08 11:55:22 +02:00
x.SamplesCount == ent.SamplesCount &&
x.ShowPrompt == ent.ShowPrompt &&
x.ShowPromptByTenant == ent.ShowPromptByTenant;
2026-02-11 11:48:13 +01:00
}
public int GetHashCode(AiPromptbausteinPrompt obj)
{
2026-02-20 12:23:28 +01:00
return (obj.PromptId, obj.ActionType, obj.Title, obj.Description, obj.OwnsoftRefLink, obj.Prompt, obj.SamplesCount).GetHashCode();
2026-02-11 11:48:13 +01:00
}
}
2026-01-09 15:11:23 +01:00
}