omegalove
asked on
'System.Data.DataSet' does not contain a definition for 'Any'
protected bool DataSourceIsEmpty(DataSet DataSource)
{
return DataSource == null || !DataSource.Any();
}
Error 8 'System.Data.DataSet' does not contain a definition for 'Any' and no extension method 'Any' accepting a first argument of type 'System.Data.DataSet' could be found (are you missing a using directive or an assembly reference?) C:\inetpub\wwwroot\OmegaLo ve.Web\Ome gaLove.Web \Controls\ UniGrid.as cx.cs 639 54 OmegaLove.Web
{
return DataSource == null || !DataSource.Any();
}
Error 8 'System.Data.DataSet' does not contain a definition for 'Any' and no extension method 'Any' accepting a first argument of type 'System.Data.DataSet' could be found (are you missing a using directive or an assembly reference?) C:\inetpub\wwwroot\OmegaLo
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Nothing null empty no rows.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
// Summary:
// Returns true if the given datasource is empty
//
// Parameters:
// dataSource:
// Datasource to check for emptyness
public static bool DataSourceIsEmpty(object dataSource);
Not row count should = 0
what else?
// Returns true if the given datasource is empty
//
// Parameters:
// dataSource:
// Datasource to check for emptyness
public static bool DataSourceIsEmpty(object dataSource);
Not row count should = 0
what else?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks.
ASKER