11 references to ChangeType
System.Data.Linq (11)
ChangeDirector.cs (1)
305accessor.SetBoxedValue(ref current, DBConvert.ChangeType(value, mm.Type));
DbConvert.cs (3)
20return (T)ChangeType(value, typeof(T)); 76returnValue = ChangeType(formatter.Deserialize(stream), toType); 88return ChangeType(formatter.Deserialize(stream), toType);
Mapping\AttributedMetaModel.cs (1)
424object codeValue = DBConvert.ChangeType(attr.Code, this.Discriminator.Type);
Mapping\MappedMetaModel.cs (1)
507object keyValue = DBConvert.ChangeType(typeMap.InheritanceCode, this.Discriminator.Type);
SqlClient\Query\SqlBinder.cs (1)
591return sql.Value(uo.ClrType, uo.SqlType, DBConvert.ChangeType(val.Value, uo.ClrType), val.IsClientSpecified, val.SourceExpression);
SqlClient\Query\SqlRetyper.cs (2)
231DBConvert.ChangeType(val.Value, arg1.ClrType), 316clrValue = DBConvert.ChangeType(clrValue, expression.ClrType);
SqlClient\SqlProvider.cs (1)
1856return DBConvert.ChangeType(parameterValue, pi.Parameter.ClrType);
SqlClient\SqlTypeSystemProvider.cs (1)
1046return DBConvert.ChangeType(value, pType);