!NAMESPACE!.AbstractModelTestCase.PrepareSchema C# (CSharp) Method

PrepareSchema() protected method

If you want to delete everything from the model. Remember to do it in a descendent dependency order
protected PrepareSchema ( ) : void
return void
		protected virtual void PrepareSchema()
		{
			// If you want to delete everything from the model.
			// Remember to do it in a descendent dependency order

			// Office.DeleteAll();
			// User.DeleteAll();

			// Another approach is to always recreate the schema 
			// (please use a separate test database if you want to do that)

			ActiveRecordStarter.CreateSchema();
		}