public override bool IsSupported(CodeGenerationContext context) { if (!base.IsSupported(context)) { return(false); } return(ScaffolderFilter.DisplayODataScaffolders(context)); }
/// <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)); }