using System; using System.Collections.Generic; using CB.Entity; using CB.Interface.Infrastructure; namespace CB.Data { //TV_Users public class UserService { public static bool Save(UserInfo entity) { return DatabaseProvider.GetDbProvider().Save(entity); } public static bool Update(UserInfo entity) { return DatabaseProvider.GetDbProvider().Update(entity); } public static bool Delete(int uid) { return DatabaseProvider.GetDbProvider().Delete(uid); } public static UserInfo Get(int uid) { return DatabaseProvider.GetDbProvider().Get(uid); } public static IList ToList() { throw new NotImplementedException(); //return DatabaseProvider.GetDbProvider().ToList(); } public static IList ToList(UserInfo entity) { throw new NotImplementedException(); } public static IList ToPaging(UserInfo entity, int pageSize, int pageIndex, out int recordCount) { return DatabaseProvider.GetDbProvider().ToPaging(entity, pageSize, pageIndex, out recordCount); } } }