Last active
August 23, 2018 15:03
-
-
Save eabreusantos/cf7383c1cd9f5fc166a31e3045c6b20d to your computer and use it in GitHub Desktop.
Duvida SO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Tabela produtos | |
* colunas: | |
* id int primary | |
* titulo varchar | |
* colunaA varchar | |
* colunaB varchar | |
* colunaC varchar | |
* | |
* Tabela labels_config | |
* colunas: | |
* id: in primary | |
* nomeColuna varchar | |
* tituloColuna varchar | |
* | |
* | |
* Registros da Tabela labels_config | |
* Id: 1 | nomeColuna: "colunaA" | tituloColuna: "Coluna A" | |
* Id: 2 | nomeColuna: "colunaB" | titultoColuna: "Coluna B" | |
* Id: 3 | nomeColuna: "colunaC" | tituloColuna: "Coluna C" | |
* | |
*/ | |
//Entidade Produto | |
public class Produto | |
{ | |
public int Id {get;set;} | |
public string Titulo {get;set;} | |
public List<Label> {get;set;} | |
} | |
//Objeto de valor Label | |
public class Label | |
{ | |
public string NomeColuna{get;set;} | |
public string Valor{get;set;} | |
} | |
//Entidade LabelConfig | |
public class LabelConfig | |
{ | |
public int Id {get;set;} | |
public string NomeColuna{get;set;} | |
public string Titulo{get;set;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment