public static Type GetClrType(this IEdmModel edmModel, IEdmEntitySetBase entitySet)
        {
            IEdmEntityType entityType = entitySet.EntityType();

            edmModel = OeEdmClrHelper.GetEdmModel(edmModel, entityType);
            return(edmModel.GetAnnotationValue <Type>(entityType));
        }
Exemplo n.º 2
0
        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));
        }