12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- using CB.Entity;
- using CB.Interface.Infrastructure;
- namespace CB.Data
- {
- //DT_TopicClass
- public class TopicClassService
- {
- public static bool Save(TopicClassInfo entity)
- {
- var ok = DatabaseProvider.GetDbProvider<ITopicClassService>().Save(entity);
- CB.Cache.CBCache.GetCacheService().RemoveObject(CB.Cache.CacheKeys.TopicClasList);
- return ok;
- }
- public static bool Update(TopicClassInfo entity)
- {
- throw new NotImplementedException();
- }
- public static bool Delete(int id)
- {
- var ok = DatabaseProvider.GetDbProvider<ITopicClassService>().Delete(id);
- CB.Cache.CBCache.GetCacheService().RemoveObject(CB.Cache.CacheKeys.TopicClasList);
- return ok;
- }
- public static TopicClassInfo Get(int id)
- {
- return DatabaseProvider.GetDbProvider<ITopicClassService>().Get(id);
- }
- public static IList<TopicClassInfo> ToList()
- {
- return DatabaseProvider.GetDbProvider<ITopicClassService>().ToList();
- }
- public static IList<TopicClassInfo> ToPaging(TopicClassInfo entity, int pageSize, int pageIndex, out int recordCount)
- {
- return DatabaseProvider.GetDbProvider<ITopicClassService>().ToPaging(entity, pageSize, pageIndex, out recordCount);
- }
- }
- }
|