public static List<T> GetResults<T>(T element, ObjectContext ctx, string cmd)
{
// List of T elements to be returned.
List<T> results = null;
// Execute the query
if (cmd == "")
{
results = null;
}
else
{
results = ctx.ExecuteStoreQuery<T>(cmd, null).ToList();
}
// Return the results
return results;
}
{
// List of T elements to be returned.
List<T> results = null;
// Execute the query
if (cmd == "")
{
results = null;
}
else
{
results = ctx.ExecuteStoreQuery<T>(cmd, null).ToList();
}
// Return the results
return results;
}
No comments:
Post a Comment