GraphQL.Code.Generator.Core
1.0.0.1
Suggested Alternatives
Additional Details
Migrated to GraphQL.Code.Generator. One package for Core and Framework
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package GraphQL.Code.Generator.Core --version 1.0.0.1
NuGet\Install-Package GraphQL.Code.Generator.Core -Version 1.0.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GraphQL.Code.Generator.Core" Version="1.0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GraphQL.Code.Generator.Core" Version="1.0.0.1" />
<PackageReference Include="GraphQL.Code.Generator.Core" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GraphQL.Code.Generator.Core --version 1.0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GraphQL.Code.Generator.Core, 1.0.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GraphQL.Code.Generator.Core@1.0.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GraphQL.Code.Generator.Core&version=1.0.0.1
#tool nuget:?package=GraphQL.Code.Generator.Core&version=1.0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Configuration.ElementsToGenerate = Configuration.Elements.Types | Configuration.Elements.Repositoy | Configuration.Elements.Query;
Configuration.TypeClasses.RepositoryConstructorParameter
= "RepositoryNamespace.RepositoryClass repositoryConstructorParameterName";
Configuration.TypeClasses.RepositoryPrivateMember
= "RepositoryNamespace.RepositoryClass repositoryPrivateMemberName";
// In constructor of Type class it will translate as this.repositoryPrivateMemberName = repositoryConstructorParameterName;
Configuration.TypeClasses.TypeClassesNamespace = "GraphQL.Types.Custom";
// This will translate as namespace GraphQL.Types.Custom {...
Configuration.TypeClasses.EntityClassesNamespacesInclude = new Regex(@"^EntitiesNamespace$", RegexOptions.IgnoreCase);
// Any namespace in input dll (where entities classes are) match above regular expression will be included.
Configuration.TypeClasses.EntityClassNamesExclude =
new Regex(@"^Rusp.*$|^DatabaseInitializer$|^DBManager$|^DataSeeder$", RegexOptions.IgnoreCase);
// Any class match above regular expression will be excluded
Configuration.TypeClasses.AdditionalNamespaces = "MyNamespace1, MyNamespace2";
string path = @"c:\dllFolder\EntitiesAssembly.dll";
Configuration.InputDllNameAndPath = path;
Configuration.TypeClasses.Outputpath = Configuration.RepositoryClass.Outputpath = Configuration.QueryClass.Outputpath
= Path.GetDirectoryName(Path.GetDirectoryName(Directory.GetCurrentDirectory()))
+ "/CodeGenerator/GeneratedCode/";
Configuration.TypeClasses.EntityClassNamesInclude
= new Regex(@"^DomainClass1$|^DomainClass2$", RegexOptions.IgnoreCase);
// Any class in input dll (where entities classes are) match above regular expression will be included.
Dictionary<string, string> pluralizationFilter = new Dictionary<string, string>();
pluralizationFilter.Add("Person", "Persons");
Configuration.PluralizationFilter = pluralizationFilter;
Configuration.TypeClasses.AdditionalCodeToBeAddedInConstructor = "InitializePartial();";
//Above setting will create InitializePartial(); in the Type Classes constructor and this can be used to call partial class method. If you don't have InitializePartial in your
// partial class or you don't have partial class at all then remove above line. But you can add this later if in all the classes you called some partial class method.
Configuration.RepositoryClass.DBContextPrivateMember
= "MyDbContextNamespace.MyDbContextclass _context";
Configuration.RepositoryClass.DBContextConstructorParameter
= "MyDbContextNamespace.MyDbContextclass context";
Configuration.RepositoryClass.RepositoryClassName = "CustomRepository";
Configuration.RepositoryClass.RepositoryClassesNamespace = "Custom.Repository.namespace";
Configuration.RepositoryClass.AdditionalNamespaces = "MyNamespace1, MyNamespace2";
//Configuration.RepositoryClass.MethodExcludeFilter = new List<string> { "GetPersons" };
//Configuration.RepositoryClass.IsMethodExcludeFilterApplyToInterface = true;
Configuration.QueryClass.RepositoryConstructorParameter
= "RepositoryNamespace.RepositoryClass repositoryConstructorParameterName";
Configuration.QueryClass.RepositoryPrivateMember
Configuration.QueryClass.QueryClassName = "CustomGraphQLQuery";
Configuration.QueryClass.QueryClassNamespace = "Graph.Queries";
Configuration.QueryClass.AdditionalNamespaces = "MyNamespace1, MyNamespace2";
int fileCount = GraphQL.Code.Generator.GraphQLCodeGenerator.GenerateGraphQLCode();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 is compatible. netcoreapp2.2 is compatible. netcoreapp3.0 is compatible. netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.0
- Pluralize.NET.Core (>= 1.0.0)
- System.CodeDom (>= 4.7.0)
-
.NETCoreApp 2.1
- Pluralize.NET.Core (>= 1.0.0)
- System.CodeDom (>= 4.7.0)
-
.NETCoreApp 2.2
- Pluralize.NET.Core (>= 1.0.0)
- System.CodeDom (>= 4.7.0)
-
.NETCoreApp 3.0
- Pluralize.NET.Core (>= 1.0.0)
- System.CodeDom (>= 4.7.0)
-
.NETCoreApp 3.1
- Pluralize.NET.Core (>= 1.0.0)
- System.CodeDom (>= 4.7.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.