Table of Contents

Class T4EntityGenerator

Namespace
JD.Domain.T4.Shims
Assembly
JD.Domain.T4.Shims.dll

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

entity EntityManifest

The entity manifest.

config ConfigurationManifest

Optional configuration manifest.

namespace string

The 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

entity EntityManifest

The entity manifest.

namespace string

The target namespace.

includeJdMarkers bool

Whether 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

entity EntityManifest

The entity manifest.

ruleSets RuleSetManifest[]

The rule sets for this entity.

namespace string

The target namespace.

Returns

string

The generated code.