In my project I need 3 Name of Tables and Columns like this :
Tables :User , News , Roles
Columns : Date,Title,Id
and store this column Name and Table name in another Table . Is best use Enum for stor this value like this :
public enum TableName
{
News,
Role,
User
}
public enum ColumnName
{
Date,
Id,
Title
}
or create a two table for store this ?
which one is better ?
I need Table and Column name show in dropdown and save it in database .
I use Code First
. i dont Use Reflection
for showing Columns because I dont show All columns to user.
I need this for save OrderSetting
for example Set Order for News
Table Like this :
Table :'News' , Columns :'Date', Type:`Desc`
Always should a row for each table .