Griffin.Data.Mapper.CommandBuilders.CommandBuilder.TruncateCommand C# (CSharp) Method

TruncateCommand() public method

Truncate all rows in a table
Will do a DELETE statement
command
public TruncateCommand ( IDbCommand command ) : void
command IDbCommand Command that will be executed after this method call
return void
        public virtual void TruncateCommand(IDbCommand command)
        {
            if (command == null) throw new ArgumentNullException("command");

            command.CommandText = string.Format("DELETE FROM {0}", TableName);
        }