Show / Hide Table of Contents

Class FormattingOptions

Options to be used with an IResultWriter<TModel, TUser>

Inheritance
Object
FormattingOptions
Namespace: Seltzr.Options
Assembly: Seltzr.dll
Syntax
C#
public class FormattingOptions

Properties

| Improve this Doc View Source

IncludedReturnProperties

Gets or sets a list of properties that should be included in the result

C#
public List<PropertyInfo> IncludedReturnProperties { get; set; }
Property Value
List<PropertyInfo>
| Improve this Doc View Source

StripArrayIfSingleElement

Gets or sets a value indicating whether the data should be returned formatted as a single element if the dataset only has one element in it.

C#
public bool StripArrayIfSingleElement { get; set; }
Property Value
Boolean
Remarks

For example, in JSON, this would be the difference between returning [{ ... }] and { ... }

Methods

| Improve this Doc View Source

Copy()

Makes a copy of these FormattingOptions

C#
public FormattingOptions Copy()
Returns

FormattingOptions

A copy of these FormattingOptions

  • Improve this Doc
  • View Source
Back to top Generated by DocFX