public static Type GetClrType(this IEdmModel edmModel, IEdmEntitySetBase entitySet) { IEdmEntityType entityType = entitySet.EntityType(); edmModel = OeEdmClrHelper.GetEdmModel(edmModel, entityType); return(edmModel.GetAnnotationValue <Type>(entityType)); }
public static Type GetClrType(this IEdmModel edmModel, IEdmEntitySetBase entitySet) { IEdmEntityType entityType = entitySet.EntityType(); IEdmModel? model = OeEdmClrHelper.GetEdmModel(edmModel, entityType); if (model == null) { throw new InvalidOperationException("Add type annotation for " + entityType.FullTypeName()); } return(model.GetAnnotationValue <Type>(entityType)); }