Example #1
0
        public string ExecuteQuery(string query)
        {
            var conn = (SqlConnection)((EntityConnection)db.Connection).StoreConnection;

            if (conn.State == ConnectionState.Closed)
            {
                conn.Open();
            }
            return(SqlLoaderUtils.ExecuteQueryToDisplayString(query, null, conn.CreateCommand));
        }
Example #2
0
 public string ExecuteQuery(string query)
 {
     return(SqlLoaderUtils.ExecuteQueryToDisplayString(query, adaptor.GetConnection()));
 }
        public virtual string ExecuteQuery(string query)
        {
            var conn = EntityFrameworkUtils.GetConnectionFrom(db);

            return(SqlLoaderUtils.ExecuteQueryToDisplayString(query, conn));
        }