Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add schema name in entity namespace ? #1314

Closed
karamizrak opened this issue Mar 16, 2022 · 2 comments
Closed

how to add schema name in entity namespace ? #1314

karamizrak opened this issue Mar 16, 2022 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@karamizrak
Copy link

Hi EFCorePowerTools team,

First of all, I'm sorry for taking up your time. But I couldn't find it.

How can i add schema name in entity namespace?
I want to write schema names in the namespace like folders separated by schema names.

CURRENT STATE;
`using Microsoft.EntityFrameworkCore;

namespace BidiBidi.Core.Entities
{
[Table("tbl_name", Schema = "schema_name")]
[Index(nameof(Id), Name = "ix_tbl_table_id")]
public partial class TblTable
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("adi")]
public string Adi { get; set; }
}
}`

I WANT;
`using Microsoft.EntityFrameworkCore;

namespace BidiBidi.Core.Entities.schema_name
{
[Table("tbl_name", Schema = "schema_name")]
[Index(nameof(Id), Name = "ix_tbl_table_id")]
public partial class TblTable
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("adi")]
public string Adi { get; set; }
}
}`

EF Core version in use: EF Core 6

Is Handlebars used: yes

EF Core Power Tools version: 2.5.918

Database engine: Postgres

Visual Studio version: Visual Studio 2019, Visual Studio 2022

@ErikEJ
Copy link
Owner

ErikEJ commented Mar 16, 2022

Duplicate of #1075 ?

@karamizrak
Copy link
Author

Yes true, it is duplicate issue.

@ErikEJ ErikEJ added the duplicate This issue or pull request already exists label Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants