Class JsonPropertyFixupWriter
- Namespace
- Breeze.Persistence
- Assembly
- Breeze.Persistence.dll
JsonTextWriter that alters property names coming from EF's mapping XML
public class JsonPropertyFixupWriter : JsonTextWriter, IDisposable
- Inheritance
-
JsonWriterJsonTextWriterJsonPropertyFixupWriter
- Implements
- Inherited Members
-
JsonTextWriter.Flush()JsonTextWriter.Close()JsonTextWriter.WriteStartObject()JsonTextWriter.WriteStartArray()JsonTextWriter.WriteEnd(JsonToken)JsonTextWriter.WriteIndent()JsonTextWriter.WriteValueDelimiter()JsonTextWriter.WriteIndentSpace()JsonTextWriter.WriteNull()JsonTextWriter.WriteUndefined()JsonTextWriter.ArrayPoolJsonTextWriter.IndentationJsonTextWriter.QuoteCharJsonTextWriter.IndentCharJsonTextWriter.QuoteNameJsonWriter.WriteEndObject()JsonWriter.WriteEndArray()JsonWriter.WriteEndConstructor()JsonWriter.WriteEnd()JsonWriter.WriteToken(JsonReader)JsonWriter.WriteToken(JsonToken)JsonWriter.CloseOutputJsonWriter.AutoCompleteOnCloseJsonWriter.TopJsonWriter.WriteStateJsonWriter.PathJsonWriter.FormattingJsonWriter.DateFormatHandlingJsonWriter.DateTimeZoneHandlingJsonWriter.StringEscapeHandlingJsonWriter.FloatFormatHandlingJsonWriter.DateFormatStringJsonWriter.Culture
Constructors
JsonPropertyFixupWriter(TextWriter)
Create a writer over a text writer.
public JsonPropertyFixupWriter(TextWriter textWriter)
Parameters
textWriterTextWriterReceives the JSON.
Methods
WritePropertyName(string)
Write a property name, dropping the leading "@" that XML attributes turn into and lower-casing the first letter.
public override void WritePropertyName(string name)
Parameters
namestringThe property name as it came from the mapping XML.
WriteValue(string?)
Write a string value, prefixing "Edm." onto the value of a type property that lacks it.
public override void WriteValue(string? value)
Parameters
valuestringThe value to write.