xpo-devexpress-dot-xpo-dot-resolvesessioneventargs.md
Specifies the session to be used to load and save persistent objects.
Namespace : DevExpress.Xpo
Assembly : DevExpress.Xpo.v25.2.dll
NuGet Package : DevExpress.Xpo
public ISessionProvider Session { get; set; }
Public Property Session As ISessionProvider
| Type | Description |
|---|---|
| ISessionProvider |
An object that implements ISessionProvider.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Session property.
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.
winforms-grid-implement-crud-operations-xpinstantfeedbacksource/CS/DXServermode2/Form1.cs#L59
{
IDisposable session1 = e.Session as IDisposable;
if (session1 != null)
xpServerModeView1.ResolveSession += (s, e) => {
e.Session = session;
};
how-to-bind-wpf-grid-to-data/CS/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.cs#L22
source.ResolveSession += (o, e) => {
e.Session = new Session();
};
wpf-data-grid-implement-crud-operations/CS/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.cs#L25
source.ResolveSession += (o, e) => {
e.Session = new Session();
};
winforms-reporting-create-report-bound-to-xpobjectsource/CS/Form1.cs#L88
//Create new session based on the instance of DataLayer
e.Session = new UnitOfWork(DataLayerInstance);
}
winforms-grid-implement-crud-operations-xpinstantfeedbacksource/VB/DXServermode2/Form1.vb#L52
Private Sub xpInstantFeedbackSource1_DismissSession(ByVal sender As Object, ByVal e As ResolveSessionEventArgs)
Dim session1 As IDisposable = TryCast(e.Session, IDisposable)
If session1 IsNot Nothing Then
AddHandler xpServerModeView1.ResolveSession, Sub(s, e)
e.Session = session
End Sub
how-to-bind-wpf-grid-to-data/VB/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.vb#L18
Dim source = New XPInstantFeedbackView(GetType(Issue), properties, Nothing)
AddHandler source.ResolveSession, Sub(o, e) e.Session = New Session()
grid.ItemsSource = source
winforms-reporting-create-report-bound-to-xpobjectsource/VB/Form1.vb#L87
'Create new session based on the instance of DataLayer
e.Session = New UnitOfWork(DataLayerInstance)
End Sub
See Also