Try to parse Php Serialized object.
This commit is contained in:
24
LaDOSE.Src/LaDOSE.Service/Service/UtilService.cs
Normal file
24
LaDOSE.Src/LaDOSE.Service/Service/UtilService.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using LaDOSE.Business.Interface;
|
||||
using LaDOSE.Entity.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace LaDOSE.Business.Service
|
||||
{
|
||||
public class UtilService : IUtilService
|
||||
{
|
||||
private LaDOSEDbContext _context;
|
||||
|
||||
public UtilService(LaDOSEDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
public bool UpdateBooking()
|
||||
{
|
||||
_context.Database.SetCommandTimeout(60);
|
||||
_context.Database.ExecuteSqlCommand("call ladoseapi.ImportEvent();");
|
||||
_context.Database.SetCommandTimeout(30);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user