Back to Devexpress

Session.ClearDatabase() Method

xpo-devexpress-dot-xpo-dot-session-68043732.md

latest2.9 KB
Original Source

Session.ClearDatabase() Method

This member supports the internal infrastructure and is not intended to be used directly from your code.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
[Browsable(false)]
public void ClearDatabase()
vb
<Browsable(False)>
Public Sub ClearDatabase

The following code snippets (auto-collected from DevExpress Examples) contain references to the ClearDatabase() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XPO_how-to-use-string-functions-in-criteria-e264/CS/UpperFunctionTest.cs#L13

csharp
UnitOfWork uof = new UnitOfWork(dl);
uof.ClearDatabase();
uof.UpdateSchema();

XPO_how-to-dynamically-create-a-read-only-calculated-persistent-alias-property-e3473/CS/ConsoleApplication17/Program.cs#L17

csharp
using (UnitOfWork uow = new UnitOfWork()) {
    uow.ClearDatabase();
    TestClass c1 = new TestClass(uow);

XPO_how-to-use-custom-sql-queries-as-a-data-source-in-xpo-via-common-table-expressions-cte-e3468/CS/S138124/Program.cs#L18

csharp
using(UnitOfWork uow = new UnitOfWork()) {
    uow.ClearDatabase();
    new BaseTable(uow) { Str = "Aa" };

XPO_how-to-use-string-functions-in-criteria-e264/VB/UpperFunctionTest.vb#L14

vb
Dim uof As New UnitOfWork(dl)
uof.ClearDatabase()
uof.UpdateSchema()

See Also

Session Class

Session Members

DevExpress.Xpo Namespace