Beispiel #1
0
 public void CanUseParamsWithSQLCQ()
 {
     SQLCQ sqlcq = new SQLCQ(connectionString);
     List <NorthWindObject> d = sqlcq.ExecuteQuery <NorthWindObject>(
         "SELECT * FROM [Categories] WHERE CategoryID = @catId", new[] {
         new SQLCQParameter()
         {
             Name  = "@catId",
             value = 2
         }
     });
     var x = 1;
 }
Beispiel #2
0
 public void CanUseSQLCQ()
 {
     SQLCQ sqlcq = new SQLCQ(connectionString);
     List <NorthWindObject> d = sqlcq.ExecuteQuery <NorthWindObject>("SELECT * FROM [Categories]");
     var x = 1;
 }