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().Update(entity); } public static bool Delete(int uid) { throw new NotImplementedException(); } public static TVUserInfo Get(int uid) { return DatabaseProvider.GetDbProvider().Get(uid); } /// /// 根据MAC地址获取用户信息 /// /// /// public static TVUserInfo GetTVUserByMac(string macAddr) { return DatabaseProvider.GetDbProvider().GetTVUserByMac(macAddr); } public static IList ToList() { throw new NotImplementedException(); } public static IList ToList(TVUserInfo entity) { throw new NotImplementedException(); } public static IList ToPaging(TVUserInfo entity, int pageSize, int pageIndex, out int recordCount) { return DatabaseProvider.GetDbProvider().ToPaging(entity, pageSize, pageIndex, out recordCount); } } }