Exemplo n.º 1
0
        public virtual QueryCommand SelectById(DataContext context, DataTableEntityMapping mapping, object id)
        {
            CreateSqlState state        = new CreateSqlState(context, false);
            CommandData    commandData  = _factory.CreateSelectByIdCommand(mapping, id, state);
            DbCommand      command      = commandData.CreateCommand(this, state);
            QueryCommand   queryCommand = new QueryCommand()
            {
                Command = command
            };

            return(queryCommand);
        }