22 references to ForType
System.Data.Entity.Design (22)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
244new CodeTypeReferenceExpression(TypeReference.ForType(
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
458return type.ClrType.IsValueType ? TypeReference.NullableForType(type.ClrType) : TypeReference.ForType(type.ClrType);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (5)
588new CodeVariableDeclarationStatement(TypeReference.ForType(typeof(ObjectParameter)), variableName)); 592new CodeObjectCreateExpression(TypeReference.ForType(typeof(ObjectParameter)), 594new CodeTypeOfExpression(TypeReference.ForType(parameterType)))); 596new CodeObjectCreateExpression(TypeReference.ForType(typeof(ObjectParameter)), 635CodeTypeReference argumentType = clrType.IsValueType ? TypeReference.NullableForType(clrType) : TypeReference.ForType(clrType);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (6)
128CodeMemberField complexInitField = new CodeMemberField(TypeReference.ForType(typeof(bool)), ComplexPropertyInitializedFieldName); 140return new CodeTypeReferenceExpression(typeReference.ForType(typeof(System.Data.Objects.DataClasses.StructuralObject))); 506return new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(TypeReference.ForType(type)), Enum.GetName(type, value)); 810_nonNullable = typeReference.ForType(type); 817_nullable = typeReference.ForType(type); 822CodeTypeReference primitiveTypeRef = typeReference.ForType(type);
System\Data\EntityModel\Emitters\TypeReference.cs (9)
230typeRef.TypeArguments.Add(ForType(innerType)); 255_byteArray = ForType(typeof(byte[])); 271_dateTime = ForType(typeof(System.DateTime)); 287_dateTimeOffset = ForType(typeof(System.DateTimeOffset)); 303_guid = ForType(typeof(System.Guid)); 333return ForType(ComplexTypeBaseClassType); 345return ForType(EntityTypeBaseClassType); 369_string = ForType(typeof(string)); 384_timeSpan = ForType(typeof(System.TimeSpan));