CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
CslaSerializationConfiguration.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="CslaSerializationConfiguration.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Use this type to configure the settings</summary>
7//-----------------------------------------------------------------------
8namespace Csla.Configuration
9{
13 public static class CslaSerializationConfigurationExtension
14 {
18 public static CslaSerializationConfiguration Serialization(this ICslaConfiguration config)
19 {
20 return new CslaSerializationConfiguration();
21 }
22 }
23
28 {
37 {
38 ConfigurationManager.AppSettings["CslaSerializationFormatter"] = formatterName;
39 return this;
40 }
41
48 {
49 ConfigurationManager.AppSettings["CslaWriter"] = typeName;
50 return this;
51 }
52
59 {
60 ConfigurationManager.AppSettings["CslaReader"] = typeName;
61 return this;
62 }
63 }
64}
Use this type to configure the settings for serialization.
CslaSerializationConfiguration MobileReader(string typeName)
Sets type of the writer that is used to read data to serialization stream in SerializationFormatterFa...
CslaSerializationConfiguration MobileWriter(string typeName)
Sets type of the writer that is used to write data to serialization stream in SerializationFormatterF...
CslaSerializationConfiguration SerializationFormatter(string formatterName)
Sets the serialization formatter type used by CSLA .NET for all explicit object serialization (such a...
@ Serialization
The object is being serialized for a clone or data portal operation.