28 lines
542 B
C#
28 lines
542 B
C#
using MAX.Core.DependencyInjection;
|
|
using StoreHub.Framework.Repositorys;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace StoreHub.KJDWebService.Services
|
|
{
|
|
public class DemoService : ITransientDependency
|
|
{
|
|
private readonly SqlRepository _sqlRepository;
|
|
|
|
public DemoService(SqlRepository sqlRepository)
|
|
{
|
|
_sqlRepository = sqlRepository;
|
|
}
|
|
public bool Test()
|
|
{
|
|
_sqlRepository.Ado.ExecuteDataTable("select * from user");
|
|
return true;
|
|
}
|
|
public bool Test2()
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|