daily pastebin goal
88%
SHARE
TWEET

Untitled

a guest Jul 16th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var dynTable = "adfk234jk";
  2. var dynFields = new String[] { "sdkksdfkl32wef", "ejwejiwi234ref" };
  3.  
  4. var sqlQuery = "select ";
  5. for (int i = 0; i < dynFields.Length; i++)
  6.     sqlQuery += (i == 0 ? "" : ",") + dynFields[i];
  7. sqlQuery += " from " + dynTable;
  8.  
  9. var results = db.ExecuteQuery<MyDynClass>(sql);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top