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