Exemple #1
0
        /// <summary>
        /// If true, then the generated data (from running the SQL) cannot be safely cached. E.g. it depends on system time.
        /// </summary>
        /// <param name="newQueryBuild"></param>
        public QueryResult ShallowClone(QueryBuild newQueryBuild)
        {
            QueryResult result = ( QueryResult )MemberwiseClone( );

            result.QueryBuild = newQueryBuild;
            return(result);
        }
Exemple #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="queryBuild">The compiled query that this run is based on.</param>
 public QueryResult([NotNull] QueryBuild queryBuild)
 {
     if (queryBuild == null)
     {
         throw new ArgumentNullException(nameof(queryBuild));
     }
     QueryBuild = queryBuild;
 }