DESKTOP-G961P6V\Zhh 2 years ago
parent
commit
bb9f738569
  1. 22
      src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs
  2. 1
      src/Shentun.Peis.Application/Shentun.Peis.Application.csproj
  3. 3
      src/Shentun.Peis.DbMigrator/appsettings.json

22
src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs

@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Authorization;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
@ -6,19 +7,36 @@ using System.Text;
using System.Threading.Tasks;
using TencentCloud.Dlc.V20210125.Models;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Identity;
namespace Shentun.Peis.DataMigrations
{
/// <summary>
/// 基础数据处理
/// </summary>
[Authorize]
//[Authorize]
public class BaseDataHandleAppService : ApplicationService
{
private readonly SqlSugarClient Db = new SqlSugarClient(new ConnectionConfig()
{
ConnectionString = "4444444444444",
DbType = DbType.PostgreSQL,
IsAutoCloseConnection = true
});
public BaseDataHandleAppService()
{
}
public void Dffff()
{
var ddd = Db.Ado.GetDataTable("select * from ActivityLink");
}
}
}

1
src/Shentun.Peis.Application/Shentun.Peis.Application.csproj

@ -23,6 +23,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.1.0" />
<PackageReference Include="SqlSugarCore" Version="5.1.4.153-preview12" />
<PackageReference Include="System.DirectoryServices" Version="8.0.0" />
<PackageReference Include="System.IO.FileSystem" Version="4.3.0" />
<PackageReference Include="System.IO.FileSystem.Primitives" Version="4.3.0" />

3
src/Shentun.Peis.DbMigrator/appsettings.json

@ -30,5 +30,6 @@
}
}
}
},
"AdminId": "3a11fe49-5719-0e9e-dd44-0c4aff0900b0"
}
Loading…
Cancel
Save