public T FindEntity <T>(string where, params object[] args) where T : class { return(DbProvider.FirstOrDefault <T>(where, args)); }
public UserInfoView GetUserInfo(string account) { string sql = "select * from userinfo Where UserCount = @0"; return(DbProvider.FirstOrDefault <UserInfoView>(sql, account)); }
public T FindEntity(string sqlWhere, params object[] args) { return(DbProvider.FirstOrDefault <T>(sqlWhere, args)); }