示例#1
0
        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        /// <param name="link">The link this instance will be associated with.</param>
        public QueryCommand(Core.IDataLink link)
            : base(link)
        {
            var engine = link.Engine as IDataEngine;

            if (engine == null)
            {
                throw new InvalidOperationException(
                          "Engine '{0}' of link '{1}' is not a valid SQL Server 2012 compatible one."
                          .FormatWith(link.Engine, link));
            }
        }
示例#2
0
 Core.IQueryCommand Core.IDataEngine.CreateQueryCommand(Core.IDataLink link)
 {
     return(this.CreateQueryCommand(link));
 }
示例#3
0
 /// <summary>
 /// Creates a new query command adapted to this engine.
 /// </summary>
 /// <param name="link">The link associated with the new command.</param>
 /// <returns>The new command.</returns>
 public new QueryCommand CreateQueryCommand(Core.IDataLink link)
 {
     return(new QueryCommand(link));
 }