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

            edmModel = OeEdmClrHelper.GetEdmModel(edmModel, entityType);
            return(edmModel.GetAnnotationValue <Type>(entityType));
        }
示例#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));
        }