You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
810 B
29 lines
810 B
using Dapper;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WpfApp4.Controllers
|
|
{
|
|
public class LogController
|
|
{
|
|
//private readonly IServiceProvider _serviceProvider;
|
|
//public LogController(IServiceProvider serviceProvider)
|
|
//{
|
|
// _serviceProvider = serviceProvider;
|
|
//}
|
|
//public async Task<IEnumerable<Logs>> GetLogs()
|
|
//{
|
|
// var dbcontext= _serviceProvider.GetRequiredService<JobDbContext>();
|
|
// var connection=dbcontext.Database.GetDbConnection();
|
|
// connection.Query<Logs>("select top 10 * from logs");
|
|
//}
|
|
|
|
|
|
}
|
|
}
|
|
|