變更 根據進入位置禁入車輛搜尋 最多500台
This commit is contained in:
parent
3e3bd91f6a
commit
c2698a66c2
@ -10,6 +10,7 @@ using Parking_space_WebAPI.Services;
|
||||
using Parking_space_WebAPI.ViewModel;
|
||||
using Parking_space_WebAPI.Authorization;
|
||||
|
||||
|
||||
namespace Parking_space_WebAPI.Controllers
|
||||
{
|
||||
|
||||
@ -92,7 +93,7 @@ namespace Parking_space_WebAPI.Controllers
|
||||
in_time = c.in_time,
|
||||
out_time = c.out_time,
|
||||
location = c.location,
|
||||
}).ToListAsync();
|
||||
}).Skip(0).Take(500).ToListAsync();
|
||||
|
||||
|
||||
return in_car_table;
|
||||
|
@ -16,6 +16,8 @@ builder.Services.AddCors();
|
||||
// Add services to the container.
|
||||
builder.Services.AddControllers();
|
||||
|
||||
|
||||
|
||||
// 連線PostgreSQL資料庫
|
||||
var connectionString = "Server=140.125.20.183;UserID=postgres;password=EL404el404;Database=postgres;port=5432;Search Path=public;CommandTimeout=1800";
|
||||
//var connectionString = "Server=127.0.0.1;UserID=postgres;password=EL404el404;Database=postgres;port=5432;Search Path=public;CommandTimeout=1800";
|
||||
|
@ -8,7 +8,7 @@
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"dotnetRunMessages": true,
|
||||
"applicationUrl": "http://localhost:5174"
|
||||
"applicationUrl": "http://localhost:7700"
|
||||
},
|
||||
"IIS Express": {
|
||||
"commandName": "IISExpress",
|
||||
|
Loading…
Reference in New Issue
Block a user