* Extended Validator
* Added new Services
This commit is contained in:
@@ -66,19 +66,19 @@ builder.Services.AddOpenApiDocument(config =>
|
|||||||
config.OperationProcessors.Add(new OperationSecurityScopeProcessor("Bearer"));
|
config.OperationProcessors.Add(new OperationSecurityScopeProcessor("Bearer"));
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Services.AddHangfire(config => config
|
// builder.Services.AddHangfire(config => config
|
||||||
.SetDataCompatibilityLevel(CompatibilityLevel.Version_170)
|
// .SetDataCompatibilityLevel(CompatibilityLevel.Version_170)
|
||||||
.UseSimpleAssemblyNameTypeSerializer()
|
// .UseSimpleAssemblyNameTypeSerializer()
|
||||||
.UseRecommendedSerializerSettings()
|
// .UseRecommendedSerializerSettings()
|
||||||
.UseSqlServerStorage(builder.Configuration.GetConnectionString("OrdersManagementConnection"), new SqlServerStorageOptions
|
// .UseSqlServerStorage(builder.Configuration.GetConnectionString("OrdersManagementConnection"), new SqlServerStorageOptions
|
||||||
{
|
// {
|
||||||
CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
|
// CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
|
||||||
SlidingInvisibilityTimeout = TimeSpan.FromMinutes(5),
|
// SlidingInvisibilityTimeout = TimeSpan.FromMinutes(5),
|
||||||
QueuePollInterval = TimeSpan.Zero,
|
// QueuePollInterval = TimeSpan.Zero,
|
||||||
UseRecommendedIsolationLevel = true,
|
// UseRecommendedIsolationLevel = true,
|
||||||
DisableGlobalLocks = true
|
// DisableGlobalLocks = true
|
||||||
}));
|
// }));
|
||||||
builder.Services.AddHangfireServer();
|
// builder.Services.AddHangfireServer();
|
||||||
|
|
||||||
builder.Services.AddAutoMapper(typeof(FaKrosnoMappingProfile), typeof(SytelineSaAppMappingProfile),
|
builder.Services.AddAutoMapper(typeof(FaKrosnoMappingProfile), typeof(SytelineSaAppMappingProfile),
|
||||||
typeof(OrdersManagementMappingProfile));
|
typeof(OrdersManagementMappingProfile));
|
||||||
@@ -125,6 +125,6 @@ app.UseAuthorization();
|
|||||||
|
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|
||||||
app.UseHangfireDashboard();
|
//app.UseHangfireDashboard();
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace SytelineSaAppEfDataModel.Dtos;
|
namespace SytelineSaAppEfDataModel.Dtos;
|
||||||
|
|
||||||
public class CustomerDto
|
public class CustomerDto : DtoBase
|
||||||
{
|
{
|
||||||
public string CustNum { get; set; }
|
public string CustNum { get; set; }
|
||||||
public int CustSeq { get; set; }
|
public int CustSeq { get; set; }
|
||||||
@@ -34,7 +34,7 @@ public class CustomerDto
|
|||||||
public decimal? AvgBalOs { get; set; }
|
public decimal? AvgBalOs { get; set; }
|
||||||
public decimal? LargeBalOs { get; set; }
|
public decimal? LargeBalOs { get; set; }
|
||||||
public decimal? LastBalOs { get; set; }
|
public decimal? LastBalOs { get; set; }
|
||||||
public string Whse { get; set; }
|
public string? Whse { get; set; }
|
||||||
public string Charfld1 { get; set; }
|
public string Charfld1 { get; set; }
|
||||||
public string Charfld2 { get; set; }
|
public string Charfld2 { get; set; }
|
||||||
public string Charfld3 { get; set; }
|
public string Charfld3 { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user