CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
DataPortalClientOptions.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="DataPortalClientOptions.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Client-side data portal options.</summary>
7//-----------------------------------------------------------------------
9
10namespace Csla.Configuration
11{
16 {
22 {
23 CslaOptions = options;
24 }
25
29 internal CslaOptions CslaOptions { get; set; }
30
34 public IServiceCollection Services { get => CslaOptions.Services; }
35
36 internal DataPortalServerOptions ServerOptions { get => CslaOptions.DataPortalServerOptions; }
37
44 public DataPortalClientOptions AutoCloneOnUpdate(bool autoCloneOnUpdate)
45 {
46 ApplicationContext.AutoCloneOnUpdate = autoCloneOnUpdate;
47 return this;
48 }
49
61 public DataPortalClientOptions AuthenticationType(string authenticationType)
62 {
63 ApplicationContext.AuthenticationType = authenticationType;
64 return this;
65 }
66
74 {
76 return this;
77 }
78 }
79}
Provides consistent context information between the client and server DataPortal objects.
static bool AutoCloneOnUpdate
Gets a value indicating whether objects should be automatically cloned by the data portal Update() me...
static bool DataPortalReturnObjectOnException
Gets a value indicating whether the server-side business object should be returned to the client as p...
static string AuthenticationType
Gets the authentication type being used by the CSLA .NET framework.
Use this type to configure the settings for CSLA .NET.
Definition: CslaOptions.cs:18
IServiceCollection Services
Gets the current service collection.
Definition: CslaOptions.cs:22
DataPortalClientOptions AutoCloneOnUpdate(bool autoCloneOnUpdate)
Sets a value indicating whether objects should be automatically cloned by the data portal Update() me...
DataPortalClientOptions DataPortalReturnObjectOnException(bool returnObjectOnException)
Sets a value indicating whether the server-side business object should be returned to the client as p...
DataPortalClientOptions AuthenticationType(string authenticationType)
Sets the authentication type being used by the CSLA .NET framework.
DataPortalClientOptions(CslaOptions options)
Creates an instance of the type.
IServiceCollection Services
Gets the current service collection.