You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB
C#

using Models;
using SlnMesnac.Common;
using SlnMesnac.Repository.service.@base;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace SlnMesnac.Repository.service.Impl
{
public class CfgstationattrServiceImpl : BaseServiceImpl<Cfgstationattr>, ICfgstationattrService
{
private Repository<Cfgstationattr> _repository;
public CfgstationattrServiceImpl(Repository<Cfgstationattr> rep) : base(rep)
{
_repository = rep;
}
public async Task<List<Cfgstationattr>> GetTableListAsync()
{
List<Cfgstationattr> list = null;
try
{
Expression<Func<Cfgstationattr, bool>> exp = x => true;
exp = exp.And(x =>
(x.Opername != "")
);
list = _repository.GetList(exp);
}
catch (Exception ex)
{
}
return list;
}
}
}