A class representing the mapping context to be used during serialization and deserialization. More...
Public Member Functions | |
| MappingContext () | |
| MappingContext (IEnumerable< DataContext.ICollection > collections) | |
| MappingContext (Dictionary< string, Type > collections) | |
| bool | TryGetCollection (string col, [NotNullWhen(true)] out MappingInfo? ret) |
| Gets the MappingInfo for a given collection name. | |
| bool | TryGetBaseType (Type ty, [NotNullWhen(true)] out MappingInfo? ret) |
| Gets the MappingInfo for a given Type. | |
| MappingInfo | GetInfo (Type ty, string? colName=null) |
| Gets the MappingInfo for a given Type. | |
A class representing the mapping context to be used during serialization and deserialization.
Definition at line 8 of file MappingContext.cs.
| Fauna.Mapping.MappingContext.MappingContext | ( | ) |
Definition at line 15 of file MappingContext.cs.
| Fauna.Mapping.MappingContext.MappingContext | ( | IEnumerable< DataContext.ICollection > | collections | ) |
Definition at line 17 of file MappingContext.cs.
| Fauna.Mapping.MappingContext.MappingContext | ( | Dictionary< string, Type > | collections | ) |
Definition at line 27 of file MappingContext.cs.
| MappingInfo Fauna.Mapping.MappingContext.GetInfo | ( | Type | ty, |
| string? | colName = null ) |
Gets the MappingInfo for a given Type.
| ty | The type to get. |
| colName | The associated collection name, if any |
Definition at line 63 of file MappingContext.cs.
| bool Fauna.Mapping.MappingContext.TryGetBaseType | ( | Type | ty, |
| [NotNullWhen(true)] out MappingInfo? | ret ) |
Gets the MappingInfo for a given Type.
| ty | The type to get. |
| ret | When this method returns, contains the MappingInfo associated with the type if found; otherwise, null. This parameter is passed uninitialized. |
true if the MappingContext contains MappingInfo for the specified type; otherwise, false.Definition at line 52 of file MappingContext.cs.
| bool Fauna.Mapping.MappingContext.TryGetCollection | ( | string | col, |
| [NotNullWhen(true)] out MappingInfo? | ret ) |
Gets the MappingInfo for a given collection name.
| col | The collection name to get. |
| ret | When this method returns, contains the MappingInfo associated with the collection if found; otherwise, null. This parameter is passed uninitialized. |
true if the MappingContext contains MappingInfo for the specified collection; otherwise, false.Definition at line 41 of file MappingContext.cs.