trying to make a generic SQL Query via a method that will fetch data i was making this code 

public ObjectResult&lt;theSelectedTableNameModel&gt; getUsersRes(string sqlStr, string ColNameAsfilter, string FiltersValue,string OrderByFilter="")
{
    string SqlCmd = "";
    string By = "";
    if (OrderByFilter.isNotEmptyOrNull())
       By = string.Concat(" ORDER BY ", OrderByFilter);
    SqlCmd = string.Format("{0} WHERE {1}={2}{3}", SqlStr, ColNameAsfilter, FiltersValue, By);


    return anEntityName.ExecuteStoreQuery&lt;theSelectedTableNameModel&gt;(SqlCmd);
}


i have copied my code and edited real names and other variables /parameters so i might have made a mistake, but the question is , how could i make it more generic than this ?

this is a working approach that lets me specify the query of the sqlCommand

i wanted it to fit any entity and any model/object/table 

how could it be done ? 
i guess there's a ready solution for this or the engeniring of EF not ment to be generic...
i'm using asp.net 4.0 , and latest EF..


Question: Does War Stomp exhaust me before I am the defender?
Answer: Yes.

According to answers on the wowtcg.com forums, War Stomp triggers in two different places, depending on whether the character with War Stomp is attacking or defending.


  If attacking, then War Stomp triggers at the beginning of the Attack Window, just after the attacker exhausts for that attack.
  Since this happens before the Protect Point, you can exhaust a protector before they can protect with it.
  
  If defending, then War Stomp triggers at the beginning of the Defend Window, just after the Protect Point.
  You cannot use War Stomp while defending to stop the current attack, but you can exhaust another character to stop them from attacking that turn."


The upshot of this is that when you are attacked by an ally with War Stomp, the attacker can exhaust your hero before the Protect Point, when you are still just the proposed defender. Since you're not yet the defender, you can't respond by exhausting your hero to pay Frost Trap's cost.