sozsoft-platform/api/src/Sozsoft.Platform.Application.Contracts/DeveloperKit/CustomEntityDto.cs
Sedat Öztürk 429227df1d Initial
2026-02-24 23:44:16 +03:00

64 lines
2.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using Volo.Abp.Application.Dtos;
namespace Sozsoft.Platform.DeveloperKit;
public class CustomEntityDto : FullAuditedEntityDto<Guid>
{
public string Menu { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public string DisplayName { get; set; } = string.Empty;
public string TableName { get; set; } = string.Empty;
public string? Description { get; set; }
public bool IsActive { get; set; } = true;
public bool IsFullAuditedEntity { get; set; } = true;
public bool IsMultiTenant { get; set; } = false;
public string MigrationStatus { get; set; } = "Askıda";
public Guid? MigrationId { get; set; }
public string EndpointStatus { get; set; } = "Askıda";
public List<EntityFieldDto> Fields { get; set; } = [];
}
public class CreateUpdateCustomEntityDto
{
public string Menu { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public string DisplayName { get; set; } = string.Empty;
public string TableName { get; set; } = string.Empty;
public string? Description { get; set; }
public bool IsActive { get; set; } = true;
public bool IsFullAuditedEntity { get; set; } = true;
public bool IsMultiTenant { get; set; } = false;
public List<CreateUpdateCustomEntityFieldDto> Fields { get; set; } = [];
}
public class EntityFieldDto : FullAuditedEntityDto<Guid>
{
public Guid EntityId { get; set; }
public string Name { get; set; } = string.Empty;
public string Type { get; set; } = string.Empty;
public bool IsRequired { get; set; }
public int? MaxLength { get; set; }
public bool IsUnique { get; set; }
public string? DefaultValue { get; set; }
public string? Description { get; set; }
public int DisplayOrder { get; set; } = 0;
}
public class CreateUpdateCustomEntityFieldDto
{
public Guid? Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Type { get; set; } = string.Empty;
public bool IsRequired { get; set; }
public int? MaxLength { get; set; }
public bool IsUnique { get; set; }
public string? DefaultValue { get; set; }
public string? Description { get; set; }
public int DisplayOrder { get; set; } = 0;
}