37 references to TypeReference
System.Data.Entity.Design (37)
System\Data\EntityModel\Emitters\AssociationTypeEmitter.cs (1)
66TypeReference.AdoFrameworkMetadataEdmType("RelationshipMultiplicity"), roleMultiplicity);
System\Data\EntityModel\Emitters\ComplexTypeEmitter.cs (1)
57baseType = TypeReference.ComplexTypeBaseClass;
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (13)
65CodeTypeReference objectContextTypeRef = TypeReference.ObjectContext; 75typeDecl.BaseTypes.Add(TypeReference.ObjectContext); 237CodeParameterDeclarationExpression connectionStringParam = new CodeParameterDeclarationExpression(TypeReference.String, "connectionString"); 256CodeParameterDeclarationExpression connectionParam = new CodeParameterDeclarationExpression(TypeReference.AdoEntityClientType("EntityConnection"), "connection"); 301codeField.Type = TypeReference.AdoFrameworkGenericClass("ObjectQuery", genericParameter); 339codeProperty.Type = TypeReference.AdoFrameworkGenericClass(typeName, genericParameter); 514method.ReturnType = TypeReference.ObjectResult(elementType); 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\EntityTypeEmitter.cs (1)
91baseType = TypeReference.EntityTypeBaseClass;
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (5)
188new CodeCastExpression(TypeReference.IEntityWithRelationshipsTypeBaseClass, ThisRef), 235new CodeCastExpression(TypeReference.IEntityWithRelationshipsTypeBaseClass, ThisRef), 317returnType = TypeReference.AdoFrameworkGenericDataClass("EntityReference", returnType); 321returnType = TypeReference.AdoFrameworkGenericDataClass("EntityCollection", returnType); 354new CodeCastExpression(TypeReference.IEntityWithRelationshipsTypeBaseClass, ThisRef),
System\Data\EntityModel\Emitters\PropertyEmitter.cs (14)
128CodeMemberField complexInitField = new CodeMemberField(TypeReference.ForType(typeof(bool)), ComplexPropertyInitializedFieldName); 268CreateEdmStructuralObjectRef(TypeReference), 489CreateEdmStructuralObjectRef(TypeReference), 506return new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(TypeReference.ForType(type)), Enum.GetName(type, value)); 573types = new PropertyTypeReferences(TypeReference, (PrimitiveType)propertyType); 577types = new PropertyTypeReferences(TypeReference, (ComplexType)propertyType, Generator); 584types = new PropertyTypeReferences(TypeReference, (PrimitiveType)typeUsage.EdmType, GetCollectionKind(property.TypeUsage)); 589types = new PropertyTypeReferences(TypeReference, (ComplexType)typeUsage.EdmType, GetCollectionKind(property.TypeUsage), Generator); 756return new CodeArrayCreateExpression(TypeReference.ByteArray, bytes); 762return new CodeObjectCreateExpression(TypeReference.Guid, 771return new CodeObjectCreateExpression(TypeReference.DateTime, new CodePrimitiveExpression(dateTime.Ticks), GetEnumValue(DateTimeKind.Unspecified)); 778return new CodeObjectCreateExpression(TypeReference.DateTimeOffset, new CodePrimitiveExpression(dateTimeOffset.Ticks), 779new CodeObjectCreateExpression(TypeReference.TimeSpan, new CodePrimitiveExpression(dateTimeOffset.Offset.Ticks))); 785return new CodeObjectCreateExpression(TypeReference.TimeSpan, new CodePrimitiveExpression(timeSpan.Ticks));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (2)
168CodeTypeReference typeRef = TypeReference.FromString(Item.Name); 218PropertyEmitter.CreateEdmStructuralObjectRef(TypeReference),