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