32 references to TypeReference
System.Data.Services.Design (32)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (20)
60CodeTypeReference objectContextTypeRef = TypeReference.ObjectContext; 70typeDecl.BaseTypes.Add(TypeReference.ObjectContext); 185CodeParameterDeclarationExpression connectionParam = new CodeParameterDeclarationExpression(TypeReference.FromString("System.Uri", true), "serviceRoot"); 201TypeReference.ForType(typeof(Func<,>), TypeReference.ForType(typeof(Type)), TypeReference.ForType(typeof(String))), 215TypeReference.ForType(typeof(Func<,>), TypeReference.ForType(typeof(String)), TypeReference.ForType(typeof(Type))), 251new CodeTypeReferenceExpression(TypeReference.ForType(typeof(StringComparison))), 259resolveTypeFromName.Parameters.Add(new CodeParameterDeclarationExpression(TypeReference.ForType(typeof(string)), "typeName")); 260resolveTypeFromName.ReturnType = TypeReference.ForType(typeof(Type)); 295new CodeTypeReferenceExpression(TypeReference.ForType(typeof(string))), 321resolveNameFromType.Parameters.Add(new CodeParameterDeclarationExpression(TypeReference.ForType(typeof(Type)), "clientType")); 322resolveNameFromType.ReturnType = TypeReference.ForType(typeof(String)); 348new CodeTypeReferenceExpression(TypeReference.ForType(typeof(string))), 418TypeReference.ForType(typeof(string)), 437new CodeTypeReferenceExpression(TypeReference.ForType(typeof(string))), 462codeField.Type = TypeReference.AdoFrameworkGenericClass("DataServiceQuery", genericParameter); 500codeProperty.Type = TypeReference.AdoFrameworkGenericClass("DataServiceQuery", genericParameter);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
319returnType = TypeReference.FrameworkGenericClass(this.Generator.GetRelationshipMultiplicityManyCollectionTypeName(), returnType);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (9)
133CodeMemberField complexInitField = new CodeMemberField(TypeReference.ForType(typeof(bool)), ComplexPropertyInitializedFieldName); 466return new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(TypeReference.ForType(type)), Enum.GetName(type, value)); 498types = new PropertyTypeReferences(TypeReference, (PrimitiveType)propertyType); 502types = new PropertyTypeReferences(TypeReference, (ComplexType)propertyType, Generator); 509types = new PropertyTypeReferences(TypeReference, (PrimitiveType)typeUsage.EdmType, GetCollectionKind(property.TypeUsage)); 514types = new PropertyTypeReferences(TypeReference, (ComplexType)typeUsage.EdmType, GetCollectionKind(property.TypeUsage), Generator); 683return new CodeArrayCreateExpression(TypeReference.ByteArray, bytes); 693return new CodeObjectCreateExpression(TypeReference.Guid, 705return new CodeObjectCreateExpression(TypeReference.DateTime, new CodePrimitiveExpression(dateTime.Ticks), GetEnumValue(DateTimeKind.Unspecified));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (2)
158CodeTypeReference typeRef = TypeReference.FromString(Item.Name); 214TypeReference.ForType(typeof(ArgumentNullException)),