123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using System;
- using System.Collections.Generic;
- using CB.Entity;
- using CB.Interface.Infrastructure;
- namespace CB.Data
- {
- public class TVUserService
- {
- public static bool Save(TVUserInfo entity)
- {
- throw new NotImplementedException();
- }
- public static bool Update(TVUserInfo entity)
- {
- return DatabaseProvider.GetDbProvider<ITVUserService>().Update(entity);
- }
- public static bool Delete(int uid)
- {
- throw new NotImplementedException();
- }
- public static TVUserInfo Get(int uid)
- {
- return DatabaseProvider.GetDbProvider<ITVUserService>().Get(uid);
- }
- /// <summary>
- /// 根据MAC地址获取用户信息
- /// </summary>
- /// <param name="macAddr"></param>
- /// <returns></returns>
- public static TVUserInfo GetTVUserByMac(string macAddr)
- {
- return DatabaseProvider.GetDbProvider<ITVUserService>().GetTVUserByMac(macAddr);
- }
- public static IList<TVUserInfo> ToList()
- {
- throw new NotImplementedException();
- }
- public static IList<TVUserInfo> ToList(TVUserInfo entity)
- {
- throw new NotImplementedException();
- }
- public static IList<TVUserInfo> ToPaging(TVUserInfo entity, int pageSize, int pageIndex, out int recordCount)
- {
- return DatabaseProvider.GetDbProvider<ITVUserService>().ToPaging(entity, pageSize, pageIndex, out recordCount);
- }
- }
- }
|