28 lines
893 B
C#
28 lines
893 B
C#
using DG.EntityFramework;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Zxd.Domain
|
|
{
|
|
public class BaseRoleDomain : IBasRoseDomain
|
|
{
|
|
private readonly IRepositoryBase<ZxdDbContext, BAS_ROLE> _BaseRoleRepository;
|
|
private readonly IBaseRepository<ZxdDbContext> _repository;
|
|
private readonly IRepositoryBase<ZxdDbContext, WX_SZZYORDER> _WX_SZZYORDERRepository;
|
|
|
|
public BaseRoleDomain(IBaseRepository<ZxdDbContext> repository)
|
|
{
|
|
_repository = repository;
|
|
_BaseRoleRepository = _repository.GetRepository<BAS_ROLE>();
|
|
_WX_SZZYORDERRepository = _repository.GetRepository<WX_SZZYORDER>();
|
|
}
|
|
|
|
public async Task test()
|
|
{
|
|
var codes = _WX_SZZYORDERRepository.Query().Take(10).ToList();
|
|
}
|
|
}
|
|
} |