Skip to content

T_CodeJam_Mapping_MappingSchema

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

MappingSchema Class

Providers object / value mapping support.

Inheritance Hierarchy

System.Object
  CodeJam.Mapping.MappingSchema
Namespace: CodeJam.Mapping
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0

Syntax

C#

public class MappingSchema

VB

Public Class MappingSchema

F#

type MappingSchema =  class end

The MappingSchema type exposes the following members.

Constructors

 

Name Description
Public method MappingSchema() Create an instance of .
Public method MappingSchema(String) Create an instance of .
Public method MappingSchema(MappingSchema[]) Create an instance of .
Public method MappingSchema(String, MappingSchema[]) Create an instance of .
  Back to Top

Properties

 

Name Description
Public property ConfigurationID Gets configuration ID.
Public property ConfigurationList Configuration list.
Public property IsStructIsScalarType true if value type is considered as scalar type.
Public property MetadataReader Gets or sets metadata reader.
  Back to Top

Methods

 

Name Description
Public method AddMetadataReader Adds metadata reader.
Public method AddScalarType Adds scalar type and its default value.
Public method ChangeType Returns an object of a specified type whose value is equivalent to a specified object.
Public method ChangeTypeTo(T) Returns an object of a specified type whose value is equivalent to a specified object.
Public method EnumToValue Converts enum to its map value.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAttribute(T)(MemberInfo, Boolean) Returns custom attribute applied to provided type member.
Public method GetAttribute(T)(Type, Boolean) Returns custom attribute applied to provided type.
Public method GetAttribute(T)(MemberInfo, Func(T, String), Boolean) Returns custom attribute applied to provided type member.
Public method GetAttribute(T)(Type, Func(T, String), Boolean) Returns custom attribute applied to provided type.
Public method GetAttributes(T)(MemberInfo, Boolean) Returns custom attributes applied to provided type member.
Public method GetAttributes(T)(Type, Boolean) Returns custom attributes applied to provided type.
Public method GetAttributes(T)(MemberInfo, Func(T, String), Boolean) Returns custom attributes applied to provided type member.
Public method GetAttributes(T)(Type, Func(T, String), Boolean) Returns custom attributes applied to provided type.
Public method GetConverter(TFrom, TTo) Returns converter from a value of type TFrom to TTo.
Public method GetConvertExpression(Type, Type, Boolean, Boolean) Returns an expression that converts a value of type from to to.
Public method GetConvertExpression(TFrom, TTo)() Returns an expression that converts a value of type TFrom to TTo.
Public method GetDefaultValue Gets default value for provided Type.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetMapValues Returns mapping values for provided enum type.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsScalarType Returns true if provided type is considered as a scalar type.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetConverter(TFrom, TTo) Adds a function expression that converts a value of type fromType to toType.
Public method SetConvertExpression(Type, Type, LambdaExpression, Boolean) Adds an expression that converts a value of type fromType to toType.
Public method SetConvertExpression(TFrom, TTo)(Expression(Func(TFrom, TTo)), Boolean) Adds an expression that converts a value of type fromType to toType.
Public method SetConvertExpression(TFrom, TTo)(Expression(Func(TFrom, TTo)), Expression(Func(TFrom, TTo))) Adds an expression that converts a value of type fromType to toType.
Public method SetCultureInfo Initializes culture specific converters.
Public method SetDefaultValue Sets default value for provided Type.
Public method SetScalarType Sets an scalar type indicator scalar for provided type.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method TryGetConvertExpression Returns an expression that converts a value of type TFrom to TTo or null.
  Back to Top

Fields

 

Name Description
Public fieldStatic member Default Default mapping schema.
  Back to Top

See Also

Reference

CodeJam.Mapping Namespace

Clone this wiki locally