Exemplo n.º 1
0
        /// <summary>
        /// Gets the entity with the given ID.
        /// </summary>
        /// <param name="keyValues"></param>
        /// <returns></returns>
        public override object GetById(object[] keyValues, OnNotFound onNotFound)
        {
            if (keyValues == null)
            {
                throw new ArgumentNullException("keyValues");
            }
            if (EntityType == null)
            {
                throw new InvalidOperationException("EntityType is null.");
            }

            // return...
            return(SqlFilter.GetById(this.EntityType, keyValues, onNotFound));
        }