12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using System;
- using Lottomat.Application.Entity.InformationManage;
- using Lottomat.Application.IService.InformationManage;
- using Lottomat.Data.Repository;
- using Lottomat.Util.WebControl;
- using System.Collections.Generic;
- using System.Linq;
- using System.Linq.Expressions;
- namespace Lottomat.Application.Service.InformationManage
- {
-
-
-
-
-
-
-
- public class TrendChartService : RepositoryFactory<TrendChartEntity>, ITrendChartService
- {
- private ITrendChartService _trendChartServiceImplementation;
- #region 获取数据
-
-
-
-
-
-
- public IEnumerable<TrendChartEntity> GetPageList(Pagination pagination, string queryJson)
- {
- return this.BaseRepository().FindList(pagination);
- }
- public IEnumerable<TrendChartEntity> GetList(Expression<Func<TrendChartEntity, bool>> condition)
- {
- return this.BaseRepository().FindList(condition);
- }
-
-
-
-
-
- public IEnumerable<TrendChartEntity> GetList(string queryJson)
- {
- return this.BaseRepository().IQueryable().ToList();
- }
-
-
-
-
-
- public TrendChartEntity GetEntity(string keyValue)
- {
- return this.BaseRepository().FindEntity(keyValue);
- }
- #endregion
- #region 提交数据
-
-
-
-
- public void RemoveForm(string keyValue)
- {
- this.BaseRepository().Delete(keyValue);
- }
-
-
-
-
-
-
- public void SaveForm(string keyValue, TrendChartEntity entity)
- {
- if (!string.IsNullOrEmpty(keyValue))
- {
- entity.Modify(keyValue);
- this.BaseRepository().Update(entity);
- }
- else
- {
- entity.Create();
- this.BaseRepository().Insert(entity);
- }
- }
- #endregion
- }
- }
|