/// <summary> /// Clear all existing parameters and copy new parameters from a given origin. /// </summary> /// <param name="origin">The origin of parameters.</param> /// <returns>The current instance</returns> /// <exception cref="ArgumentNullException">If <paramref name="origin"/> is null.</exception> public IDetachedQuery CopyParametersFrom(IDetachedQueryImplementor origin) { if (origin == null) throw new ArgumentNullException("origin"); (this as IDetachedQueryImplementor).OverrideParametersFrom(origin); return this; }
/// <summary> /// Clear all existing parameters and copy new parameters from a given origin. /// </summary> /// <param name="origin">The origin of parameters.</param> /// <returns>The current instance</returns> /// <exception cref="ArgumentNullException">If <paramref name="origin"/> is null.</exception> public IDetachedQuery CopyParametersFrom(IDetachedQueryImplementor origin) { if (origin == null) { throw new ArgumentNullException("origin"); } (this as IDetachedQueryImplementor).OverrideParametersFrom(origin); return(this); }
public void OverrideInfoFrom(IDetachedQueryImplementor origin) { (this as IDetachedQueryImplementor).OverrideInfoFrom(origin); }
void IDetachedQueryImplementor.OverrideParametersFrom(IDetachedQueryImplementor origin) { ClearParameters(); origin.SetParametersTo(this); }
void IDetachedQueryImplementor.OverrideInfoFrom(IDetachedQueryImplementor origin) { Reset(); origin.CopyTo(this); }