public List <T> FindList <T>() where T : class { return(DbProvider.Fetch <T>()); }
public List <T> FindList <T>(string sqlWhere, params object[] args) where T : class { return(DbProvider.Fetch <T>(sqlWhere, args)); }
public T FindEntity <T>(string where, params object[] args) where T : class { return(DbProvider.FirstOrDefault <T>(where, args)); }
public object Insert <T>(T entity) where T : class { return(DbProvider.Insert(entity)); }
public int Delete <T>(T entity) where T : class { return(DbProvider.Delete(entity)); }
public T FindEntity <T>(object id) where T : class { return(DbProvider.SingleOrDefault <T>(id)); }
public List <T> PageList <T>(int pageIndex, int pageSize, string sqlWhere, out int total, params object[] args) where T : class { return(DbProvider.PageList <T>(pageIndex, pageSize, sqlWhere, out total, args)); }
public int Delete(T entity) { return(DbProvider.Delete(entity)); }
public List <T> FindList() { return(DbProvider.Fetch <T>()); }
public List <T> PageList <T>(int pageIndex, int pageSize, out int total) where T : class { return(DbProvider.PageList <T>(pageIndex, pageSize, "", out total)); }
public T FindEntity(string sqlWhere, params object[] args) { return(DbProvider.FirstOrDefault <T>(sqlWhere, args)); }
public object Insert(T entity) { return(DbProvider.Insert(entity)); }
public T FindEntity(object id) { return(DbProvider.SingleOrDefault <T>(id)); }
public UserInfoView GetUserInfo(string account) { string sql = "select * from userinfo Where UserCount = @0"; return(DbProvider.FirstOrDefault <UserInfoView>(sql, account)); }
public int Update <T>(T entity) where T : class { return(DbProvider.Update(entity)); }
public List <UserInfoView> GetUser() { string sql = "select Id,Account,Name,Status from userinfo"; return(DbProvider.Fetch <UserInfoView>(sql)); }
public int Update(T entity) { return(DbProvider.Update(entity)); }