Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Closed Issue: Consider consolidating calls to LoadSchemaElement [423]

$
0
0
From code in StructuredProperty.cs:

// TODO: it's odd that the client also has to call LoadSchemaElement. We should investigate what it would take to make this the sole client of LoadSchemaElement (perhaps by passing the resulting EdmType as an out parameter. I'm uncomfortable with the alternative in which the required edmType is passed in as a parameter here, because it's used to build the typeUsage which will then be cached in the typeUsageBuilder. We'd have to do something to enusre that this.Type and this.TypeUsage didn't become "out of sync".
internal void EnsureEnumTypeFacets(
Converter.ConversionCache convertedItemCache, Dictionary<SchemaElement, GlobalItem> newGlobalItems)
{
Debug.Assert(Type is SchemaEnumType);
var propertyType = (EdmType)Converter.LoadSchemaElement(Type, Type.Schema.ProviderManifest, convertedItemCache, newGlobalItems);
_typeUsageBuilder.ValidateAndSetTypeUsage(propertyType, false); //use typeusagebuilder so dont lose facet information
}
Comments: We decided not to change this in team triage.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>