using AutoMapper; using Erp.SqlQueryManager.Application.Contracts; using Erp.SqlQueryManager.Domain.Entities; using Volo.Abp.AutoMapper; namespace Erp.SqlQueryManager.Application; public class SqlQueryManagerAutoMapperProfile : Profile { public SqlQueryManagerAutoMapperProfile() { CreateMap(); CreateMap() .IgnoreFullAuditedObjectProperties() .Ignore(x => x.Id) .Ignore(x => x.TenantId) .Ignore(x => x.Status) .Ignore(x => x.LastExecutedAt) .Ignore(x => x.ExecutionCount); CreateMap() .IgnoreFullAuditedObjectProperties() .Ignore(x => x.Id) .Ignore(x => x.TenantId) .Ignore(x => x.Status) .Ignore(x => x.LastExecutedAt) .Ignore(x => x.ExecutionCount); CreateMap(); CreateMap() .IgnoreFullAuditedObjectProperties() .Ignore(x => x.Id) .Ignore(x => x.TenantId) .Ignore(x => x.Status) .Ignore(x => x.IsDeployed) .Ignore(x => x.LastDeployedAt); CreateMap() .IgnoreFullAuditedObjectProperties() .Ignore(x => x.Id) .Ignore(x => x.TenantId) .Ignore(x => x.ProcedureName) .Ignore(x => x.SchemaName) .Ignore(x => x.DataSourceCode) .Ignore(x => x.Status) .Ignore(x => x.IsDeployed) .Ignore(x => x.LastDeployedAt); CreateMap(); CreateMap() .IgnoreFullAuditedObjectProperties() .Ignore(x => x.Id) .Ignore(x => x.TenantId) .Ignore(x => x.Status) .Ignore(x => x.IsDeployed) .Ignore(x => x.LastDeployedAt); CreateMap() .IgnoreFullAuditedObjectProperties() .Ignore(x => x.Id) .Ignore(x => x.TenantId) .Ignore(x => x.ViewName) .Ignore(x => x.SchemaName) .Ignore(x => x.DataSourceCode) .Ignore(x => x.Status) .Ignore(x => x.IsDeployed) .Ignore(x => x.LastDeployedAt); CreateMap(); CreateMap() .IgnoreFullAuditedObjectProperties() .Ignore(x => x.Id) .Ignore(x => x.TenantId) .Ignore(x => x.Status) .Ignore(x => x.IsDeployed) .Ignore(x => x.LastDeployedAt); CreateMap() .IgnoreFullAuditedObjectProperties() .Ignore(x => x.Id) .Ignore(x => x.TenantId) .Ignore(x => x.FunctionName) .Ignore(x => x.SchemaName) .Ignore(x => x.FunctionType) .Ignore(x => x.DataSourceCode) .Ignore(x => x.Status) .Ignore(x => x.IsDeployed) .Ignore(x => x.LastDeployedAt); } }