using System; using Volo.Abp.Domain.Entities.Auditing; namespace Sozsoft.Platform.Entities; public class CustomComponent : FullAuditedEntity { public string Name { get; set; } = string.Empty; /// Rotasi olmayan bilesende (ust bilgi, alt bilgi) NULL kalir; tekil indeks dolu degerleri kapsar. public string? RoutePath { get; set; } public string Code { get; set; } = string.Empty; public string? Props { get; set; } public string? Description { get; set; } public bool IsActive { get; set; } = true; public string? Dependencies { get; set; } // JSON string of component names /// /// Component'in Data sekmesinde kullandigi API'ler; JSON dizisi olarak tutulur. /// Her kayit endpoint'in method/url bilgisinin yani sira cozumlenebiliyorsa /// kaynak CRUD endpoint'ini (EntityName ve crud/{EntityName}.json seed dosyasi) tasir. /// Props icindeki designer dokumanindan turetilir; kaydetme sirasinda otomatik yazilir. /// public string? DataSources { get; set; } public CustomComponent(string name, string? routePath, string code, string? props, string? description, bool isActive, string? dependencies, string? dataSources = null) { Name = name; RoutePath = routePath; Code = code; Props = props; Description = description; IsActive = isActive; Dependencies = dependencies; DataSources = dataSources; } }