Skip to content

[Feature] entityTypeNameTransformer - Add schema name to object for transformer #248

@BBSquared

Description

@BBSquared

Allow adding of schema to entityTypeNames to better describe properties in the DbContext, navigational properties, and class names

services.AddHandlebarsTransformers(			  
  entityTypeNameTransformer: n =>
  {
	  if (n.Schema != null && !n.Schema.Equals("dbo", StringComparison.InvariantCultureIgnoreCase))
		  return n.Schema + n.Name;
	  return n.Name;
  }
);

I'm working on a solution locally for my own needs - would like to contribute to the overall source if possible

I can't find an alternative way to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions