You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running dotnet tool run ogschema ... to generate the data models class and include it in your project, it will generate a lot of compiler warnings like this: Warning CS0108 : 'RegisterPage.MasterLanguage' hides inherited member 'Content.MasterLanguage'. Use the new keyword if hiding was intended.
Proper inheritance would be nice, but since these models are populated through JSON serializing, a simple: #pragma warning disable CS0108, CS0114
at the top of the generated file will suffice.
My current project currently has 721 warnings.
I'm using JetBrains Rider, have not tested if Visual Studio shows these as warnings as well.
The text was updated successfully, but these errors were encountered:
When running
dotnet tool run ogschema ...
to generate the data models class and include it in your project, it will generate a lot of compiler warnings like this:Warning CS0108 : 'RegisterPage.MasterLanguage' hides inherited member 'Content.MasterLanguage'. Use the new keyword if hiding was intended.
Proper inheritance would be nice, but since these models are populated through JSON serializing, a simple:
#pragma warning disable CS0108, CS0114
at the top of the generated file will suffice.
My current project currently has 721 warnings.
I'm using JetBrains Rider, have not tested if Visual Studio shows these as warnings as well.
The text was updated successfully, but these errors were encountered: