Class T4EntityGenerator
Generates entity code from manifests for T4 templates.
public static class T4EntityGenerator
- Inheritance
-
T4EntityGenerator
- Inherited Members
Methods
GenerateConfiguration(EntityManifest, ConfigurationManifest?, string)
Generates an EF Core configuration class from a manifest.
public static string GenerateConfiguration(EntityManifest entity, ConfigurationManifest? config, string @namespace)
Parameters
entityEntityManifestThe entity manifest.
configConfigurationManifestOptional configuration manifest.
namespacestringThe target namespace.
Returns
- string
The generated code.
GenerateEntity(EntityManifest, string, bool)
Generates an entity class from a manifest.
public static string GenerateEntity(EntityManifest entity, string @namespace, bool includeJdMarkers = true)
Parameters
entityEntityManifestThe entity manifest.
namespacestringThe target namespace.
includeJdMarkersboolWhether to include JD.Domain marker comments.
Returns
- string
The generated code.
GenerateRulesPartial(EntityManifest, RuleSetManifest[], string)
Generates a JD.Domain rules partial class for an entity.
public static string GenerateRulesPartial(EntityManifest entity, RuleSetManifest[] ruleSets, string @namespace)
Parameters
entityEntityManifestThe entity manifest.
ruleSetsRuleSetManifest[]The rule sets for this entity.
namespacestringThe target namespace.
Returns
- string
The generated code.