signumsoftware / framework

Open Source framework for writing data-centric applications using the latest versions of .Net Core, C# (not-nullable), ASP.NET Web API, Typescript (strict), React, D3 and Sql Server or PostgreeSQL
https://www.signumsoftware.com/en/Framework
MIT License
221 stars 84 forks source link

Problems with getOperationInfo and tryGetOperationInfo #607

Closed goldenauge closed 7 months ago

goldenauge commented 1 year ago

I have problems in several files as example "TypeHelpPage.tsx" to find the method tryGetOperationInfo and getOperationInfo:

if (!Operations.tryGetOperationInfo(TypeHelpOperation.Save, TypeHelpEntity)) return null;

Operations.getOperationInfo(TypeHelpOperation.Save, TypeHelpEntity).niceName

to solve this problem i changed the code in this way:

if (!tryGetOperationInfo(TypeHelpOperation.Save, TypeHelpEntity)) return null;

getOperationInfo(TypeHelpOperation.Save, TypeHelpEntity).niceName

and added this import:

import { tryGetOperationInfo, getOperationInfo } from '@framework/Reflection';

do someone else has this problem too?

olmobrutall commented 1 year ago

Your solution looks good, can you make a PR? I’m currently in holidays