Azavea.Open.DAO.Memory.MemoryDaLayer.Truncate C# (CSharp) Method

Truncate() public method

Deletes all contents of the table. Faster for large tables than DeleteAll, but requires greater permissions. For layers that do not support this, the behavior should be the same as calling Delete(null, mapping).
public Truncate ( ClassMapping mapping ) : void
mapping ClassMapping
return void
        public override void Truncate(ClassMapping mapping)
        {
            IDictionary<string, MemoryObject> table = GetTable(mapping);
            lock (table)
            {
                table.Clear();
            }
        }