ScrumTime.Foundation.DataAccessLayer.ScrumTimeContext.DeleteAllCollections C# (CSharp) Method

DeleteAllCollections() public method

public DeleteAllCollections ( ) : void
return void
        public void DeleteAllCollections()
        {
            foreach (var collectionName in Database.GetCollectionNames())
            {
                Database.DropCollection(collectionName);
            }
        }

Usage Example

        public void InitialCreation()
        {
            var context = new ScrumTimeContext();
            context.DeleteAllCollections();

            // Create the default drop-down lists
        }
All Usage Examples Of ScrumTime.Foundation.DataAccessLayer.ScrumTimeContext::DeleteAllCollections