Schema MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The Schema type exposes the following members.
Constructors

  NameDescription
Public methodSchema(String,  Schema FieldDef )
Initializes a new instance of the Schema class
Public methodSchema(String, Boolean,  Schema FieldDef )
Initializes a new instance of the Schema class
Public methodSchema(String, Boolean, IEnumerable Schema FieldDef , IEnumerable TableAttribute )
Initializes a new instance of the Schema class
Public methodSchema(String, Boolean, IEnumerable TableAttribute ,  Schema FieldDef )
Initializes a new instance of the Schema class
Back to Top
Methods

  NameDescription
Public methodOnlineEquals
Determines whether the specified object is equal to the current object.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodStatic memberFromJSON(String, Boolean)
Public methodStatic memberFromJSON(JSONDataMap, Boolean)
Public methodGetEnumerator
Public methodGetFieldDefByIndex
Finds fielddef by name or throws if name is not found
Public methodGetFieldDefByName
Finds fielddef by name or throws if name is not found
Public methodStatic memberGetFieldMembers
Gets all property members of TypedRow that are tagged as [Field]
Public methodStatic memberGetForTypedRow(Type)
Returns schema instance for the TypedRow instance by fetching schema object from cache or creating it if it has not been cached yet
Public methodStatic memberGetForTypedRow(TypedRow)
Returns schema instance for the TypedRow instance by fetching schema object from cache or creating it if it has not been cached yet
Public methodStatic memberGetForTypedRow TRow  
Returns schema instance for the TypedRow instance by fetching schema object from cache or creating it if it has not been cached yet
Public methodOnlineGetHashCode
Serves as the default hash function.
(Inherited from OnlineObject.)
Public methodGetKeyFieldDefsForTarget
Returns FieldDefs in their order within rows that are declared as key fields for particular target
Public methodGetTableAttrForTarget
Returns a TableAttribute that matches the supplied targetName, or if one was not defined then returns TableAttribute which matches any target or null
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodIsEquivalentTo
Performs logical equivalence testing of two schemas
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodToString (Overrides OnlineObject ToString .)
Public methodWriteAsJSON
Writes schema as JSON. Do not call this method directly, instead call rowset.ToJSON() or use JSONWriter class
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsBool (Defined by ObjectValueConversion.)
Public Extension MethodAsByte (Defined by ObjectValueConversion.)
Public Extension MethodAsChar (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime(DateTime, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID(GDID, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol(GDIDSymbol, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsInt (Defined by ObjectValueConversion.)
Public Extension MethodAsJSONConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLaconicConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLong (Defined by ObjectValueConversion.)
Public Extension MethodAsLookAheadEnumerable Schema FieldDef  (Defined by LookAheadExtensions.)
Public Extension MethodAsNonNullOrEmptyString (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableBool (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableChar (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDateTime (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDIDSymbol (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableShort (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableTimeSpan (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableULong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsShort (Defined by ObjectValueConversion.)
Public Extension MethodAsString (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan(TimeSpan, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsULong (Defined by ObjectValueConversion.)
Public Extension MethodAsUri (Defined by ObjectValueConversion.)
Public Extension MethodAsUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsXMLConfig (Defined by ObjectValueConversion.)
Public Extension MethodDistinct Schema FieldDef, TKey  (Defined by CollectionUtils.)
Public Extension MethodFirstMax Schema FieldDef, TComparand (Func Schema FieldDef, TComparand )Overloaded. (Defined by CollectionUtils.)
Public Extension MethodFirstMax Schema FieldDef, TComparand (Func Schema FieldDef, TComparand , TComparand )Overloaded. (Defined by CollectionUtils.)
Public Extension MethodFirstMin Schema FieldDef, TComparand (Func Schema FieldDef, TComparand )Overloaded. (Defined by CollectionUtils.)
Public Extension MethodFirstMin Schema FieldDef, TComparand (Func Schema FieldDef, TComparand , TComparand )Overloaded. (Defined by CollectionUtils.)
Public Extension MethodFirstOrAnyOrDefault Schema FieldDef 
Tries to find the first element that matches the predicate and returns it, otherwise returns the first element found or default (i.e. null)
(Defined by CollectionUtils.)
Public Extension MethodForEach Schema FieldDef (Action Schema FieldDef )Overloaded.
Runs some method over each element of src sequence
(Defined by CollectionUtils.)
Public Extension MethodForEach Schema FieldDef (Action Schema FieldDef, Int32 )Overloaded.
Runs some method over each element of src sequence
(Defined by CollectionUtils.)
Public Extension MethodSkipLast Schema FieldDef  Overloaded.
Takes all elements except for last element from the given source
(Defined by CollectionUtils.)
Public Extension MethodSkipLast Schema FieldDef (Int32)Overloaded.
Takes all but last N elements from the source
(Defined by CollectionUtils.)
Public Extension MethodToErlObject Overloaded.
Try to convert .NET native object type to corresponding Erlang term. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToErlObject(ErlTypeOrder, Boolean)Overloaded.
Try to convert .NET native object type to corresponding Erlang term of given type. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToJSON(JSONWritingOptions)Overloaded.
Serializes object into JSON string
(Defined by JSONExtensions.)
Public Extension MethodToJSON(TextWriter, JSONWritingOptions)Overloaded.
Serializes object into JSON format using provided TextWriter
(Defined by JSONExtensions.)
Public Extension MethodToJSON(Stream, JSONWritingOptions, Encoding)Overloaded.
Serializes object into JSON format using provided stream and optional encoding
(Defined by JSONExtensions.)
Back to Top
Fields

  NameDescription
Public fieldStatic memberEXTRA_SUPPORTS_DELETE_ATTR
Public fieldStatic memberEXTRA_SUPPORTS_INSERT_ATTR
Public fieldStatic memberEXTRA_SUPPORTS_UPDATE_ATTR
Back to Top
Properties

  NameDescription
Public propertyAnyTargetKeyFieldDefs
Returns FieldDefs in their order within rows that are declared as key fields in ANY_TARGET
Public propertyAnyVisibleFieldDefs
Returns FieldDefs in their order within rows as
Public propertyExtraData
Returns Extra data that may be associated with schema by various providers. The field is lazily allocated
Public propertyFieldCount
Returns field count
Public propertyFieldDefs
Returns FieldDefs in their order within rows that this schema describes
Public propertyItem Int32 
Returns a field definition by a positional index within the row
Public propertyItem String 
Returns a field definition by a unique case-insensitive field name within schema
Public propertyName
For TypedRows, returns a unique fully-qualified row type name, whichs is the global identifier of this schema instance
Public propertyReadOnly
Specifies that target that this schema represents (i.e. db table) is not updatable so DataStore will not be able to save row changes made in ram
Public propertyStatic memberSchemaEquivalenceEqualityComparer
Returns an instance of IEqualityComparer(Schema) that performs logical equivalence testing
Public propertyTableAttrs
Returns table-level attributes
Public propertyTypedRowType
Returns a type of TypedRow if schema was created for TypedRow, or null
Back to Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable GetEnumerator
Back to Top
See Also