首次提交:添加src文件夹代码
This commit is contained in:
26
Cowain.Bake.BLL/AlarmContentService.cs
Normal file
26
Cowain.Bake.BLL/AlarmContentService.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Cowain.Bake.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Unity;
|
||||
|
||||
namespace Cowain.Bake.BLL
|
||||
{
|
||||
public class AlarmContentService : ServiceBase
|
||||
{
|
||||
public AlarmContentService(IUnityContainer unityContainer) : base(unityContainer)
|
||||
{
|
||||
}
|
||||
|
||||
public List<TAlarmContent> GetAll()
|
||||
{
|
||||
using (var Context = new BakingEntities())
|
||||
{
|
||||
return (from c in Context.Set<TAlarmContent>().Where(x => !string.IsNullOrEmpty(x.Desc))
|
||||
select c).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user