timabell / ef-enum-to-lookup

Generates lookup tables from enum references in Microsoft Entity Framework 6.1
https://www.nuget.org/packages/ef-enum-to-lookup
69 stars 29 forks source link

Custom Table and Column names #41

Open DanielPerezArmeria opened 8 years ago

DanielPerezArmeria commented 8 years ago

I created an Attribute allowing you to set a custom name to your lookup table and also to set the "Name" column to whatever you want. However, my code only modifies the generated SQL so I can't call the Apply method directly. It would be nice if there was built-in support to control the names of both the table and the colums directly

timabell commented 8 years ago

Why would you need this?

Pull requests welcome but I'd need convincing of the need for this extra feature.

tinonetic commented 6 years ago

I absolutely agree with @DanielPerezArmeria .

Prefixing the table with "Enum_" is bringing programming specific naming to a database context.

It pollutes the concept of the "entity type"

It is not even a complex request

timabell commented 6 years ago

Interesting, I think that's the result of coming at this with fresh eyes. I'm certainly persuaded it should be possible to not have a prefix.