public static RegisterTypeMapping ( |
||
type | The Type to be mapped. | |
dbType | DbType | The DbType to be mapped to. |
Résultat | void |
/// <summary> /// Initialises a new instance of the <see cref="TimeSpanTypeConverter"/> class. /// </summary> public TimeSpanTypeConverter() { TypeConverter.RegisterTypeMapping(this.timeSpanType, DbType.Int64); TypeConverter.RegisterTypeMapping(this.timeSpanTypeNullable, DbType.Int64); }
/// <summary> /// Initialises a new instance of the <see cref="XDocumentTypeConverter"/> class. /// </summary> public XDocumentTypeConverter() { TypeConverter.RegisterTypeMapping(this.xdocumentType, DbType.String); }
/// <summary> /// Initialises a new instance of the <see cref="UriTypeConverter"/> class. /// </summary> public UriTypeConverter() { TypeConverter.RegisterTypeMapping(this.uriType, DbType.String); }