19 references to Emit_EnsureType
System.Data.Entity (19)
System\Data\Common\Internal\Materialization\Translator.cs (19)
68Expression result = Translator.Emit_EnsureType(ReturnedExpression, RequestedType); 689nullConstant = Emit_EnsureType(Expression.Constant(null, typeof(object)), type); 745Expression result = Emit_EnsureType(input, requestedType); // Needed to ensure appropriate exception is thrown 748result = Emit_EnsureType(input, typeof(object)); 750result = Emit_EnsureType(result, actualType); // Needed to ensure appropriate type for wrapper constructor 810return Translator.Emit_EnsureType(Expression.Property(input, IEntityWrapper_Entity), type); 1018Expression result = Emit_EnsureType(Expression.Call(Shaper_Reader, DbDataReader_GetValue, Expression.Constant(ordinal)), type); 1109Expression result = Emit_EnsureType(Expression.ArrayIndex(Shaper_State, Expression.Constant(stateSlotNumber)), type); 1433result = Emit_EnsureType( 1507Expression typeReader = Emit_EnsureType(AcceptWithMappedType(this, typeChoice.Value, columnMap).UnwrappedExpression, typeof(TElement)); 1700columnReaders[i] = Expression.Coalesce(Emit_EnsureType(columnReader, typeof(object)), DBNull_Value); 1717Expression result = Emit_EnsureType(Expression.New(MaterializedDataRecord_ctor, Shaper_Workspace, typeUsage, columnReaderArray), arg.RequestedType); 1878coordinatorScratchpad.Element = Emit_EnsureType(coordinatorScratchpad.Element, elementType); 1897coordinatorScratchpad.InitializeCollection = Emit_EnsureType( 1901result = Emit_EnsureType(result, arg.RequestedType); 1913result = Emit_EnsureType(Expression.New(constructorInfo, result), compensatingCollectionType); 2078result = Emit_Conditional_NotDBNull(Helper.IsGeographicType((PrimitiveType)columnType.EdmType) ? Emit_EnsureType(Emit_Shaper_GetGeographyColumnValue(ordinal), type) 2079: Emit_EnsureType(Emit_Shaper_GetGeometryColumnValue(ordinal), type), 2116result = Emit_EnsureType(result, type);