Class FormattingOptions
Options to be used with an IResultWriter<TModel, TUser>
Namespace: Seltzr.Options
Assembly: Seltzr.dll
Syntax
C#
public class FormattingOptions
Properties
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>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
BooleanRemarks
For example, in JSON, this would be the difference between returning [{ ... }] and { ... }
Methods
Makes a copy of these FormattingOptions
C#
public FormattingOptions Copy()
Returns
A copy of these FormattingOptions