Esempio n. 1
0
 public override bool IsSupported(CodeGenerationContext context)
 {
     if (!base.IsSupported(context))
     {
         return(false);
     }
     return(ScaffolderFilter.DisplayODataScaffolders(context));
 }
Esempio n. 2
0
        /// <summary>
        /// OData scaffolders are only supported for C# Projects without a reference to a previous version of WebAPI or OData
        /// </summary>
        public bool IsSupported(CodeGenerationContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            return(ScaffolderFilter.DisplayWebApiScaffolders(context) &&
                   ScaffolderFilter.DisplayODataScaffolders(context));
        }