上传文件至「/」
This commit is contained in:
26
AlarmContentService.cs
Normal file
26
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>()
|
||||
select c).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user