22 references to ForType
System.Data.Entity.Design (22)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
244
new CodeTypeReferenceExpression(TypeReference.
ForType
(
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
458
return type.ClrType.IsValueType ? TypeReference.NullableForType(type.ClrType) : TypeReference.
ForType
(type.ClrType);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (5)
588
new CodeVariableDeclarationStatement(TypeReference.
ForType
(typeof(ObjectParameter)), variableName));
592
new CodeObjectCreateExpression(TypeReference.
ForType
(typeof(ObjectParameter)),
594
new CodeTypeOfExpression(TypeReference.
ForType
(parameterType))));
596
new CodeObjectCreateExpression(TypeReference.
ForType
(typeof(ObjectParameter)),
635
CodeTypeReference argumentType = clrType.IsValueType ? TypeReference.NullableForType(clrType) : TypeReference.
ForType
(clrType);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (6)
128
CodeMemberField complexInitField = new CodeMemberField(TypeReference.
ForType
(typeof(bool)), ComplexPropertyInitializedFieldName);
140
return new CodeTypeReferenceExpression(typeReference.
ForType
(typeof(System.Data.Objects.DataClasses.StructuralObject)));
506
return new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(TypeReference.
ForType
(type)), Enum.GetName(type, value));
810
_nonNullable = typeReference.
ForType
(type);
817
_nullable = typeReference.
ForType
(type);
822
CodeTypeReference primitiveTypeRef = typeReference.
ForType
(type);
System\Data\EntityModel\Emitters\TypeReference.cs (9)
230
typeRef.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));
333
return
ForType
(ComplexTypeBaseClassType);
345
return
ForType
(EntityTypeBaseClassType);
369
_string =
ForType
(typeof(string));
384
_timeSpan =
ForType
(typeof(System.TimeSpan));