-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (80 loc) · 3.54 KB
/
index.html
File metadata and controls
83 lines (80 loc) · 3.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="eng">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width initial-scale=1.0">
<meta name="author" content="Senhor Bento">
<meta name="keywords" content="SQL, C#, SQL to C#, SQL para C#, Converter SQL para C#, SQL 2 C#">
<meta name="description" content="Um simples utilitário que converte tabelas de SQL para classes em C#.">
<meta name="theme-color" content="#0093E9">
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="script.js"></script>
<title>SQL to C#</title>
</head>
<body>
<header>
<h1>SQL to C# Entity</h1>
</header>
<main>
<div class="container-box">
<textarea name="input" id="inputText" placeholder="Insira o código SQL aqui." class="BoxTexto"></textarea>
<textarea name="output" id="outputText" placeholder="A classe gerada será mostrada aqui."
class="BoxTexto"></textarea>
</div>
<button class="transpiler-button" onclick="Converter();">Converter</button>
</main>
<section class="container-description">
<h2>Como usar?</h2>
<ol>
<li>Primeiro coloque uma tabela em SQL na área de texto do lado esquerda.</li>
<li>Depois clique no botão Converter.</li>
<li>O resultado será mostrado na área de texto do lado direito.</li>
<li><b>Observação: É importante os atributos estarem um por linha como no exemplo abaixo.</b></li>
</ol>
</section>
<section class="container-exemplo">
<h2>Exemplo</h2>
<div class="container-box">
<div class="box-example">
<p><b>Entrada:</b></p>
<p>CREATE TABLE PessoaFisica(</p>
<p> id INT PRIMARY KEY AUTO_INCREMENT,</p>
<p> nome VARCHAR(100) NOT NULL,</p>
<p> idade SMALLINT NOT NULL,</p>
<p> cpf VARCHAR(14) NOT NULL,</p>
<p> telefone char(20) NOT NULL,</p>
<p> data_nascimento DATE,</p>
<p> saldo decimal</p>
<p>);</p>
</div>
<div class="box-example">
<p><b>Saida:</b></p>
<p>public class PessoaFisica{</p>
<p> public int id { get; set; }</p>
<p> public string nome { get; set; }</p>
<p> public short idade { get; set; }</p>
<p> public string cpf { get; set; }</p>
<p> public string telefone { get; set; }</p>
<p> public DateTime data_nascimento { get; set; }</p>
<p> public decimal saldo { get; set; }</p>
<p>}</p>
</div>
</div>
</section>
<footer>
<p class="TextoFooter">Feito por Bento me encontre em:</p>
<a href="https://www.twitter.com/_senhorbento/" target="_blank">
<img src="img/twitter.png" alt="Twitter" class="link_img" title="Twitter">
</a>
<a href="https://www.linkedin.com/in/senhorbento/" target="_blank">
<img src="img/linkedin.png" alt="Linkedin" class="link_img" title="Linkedin">
</a>
<a href="https://github.com/senhorbento/" target="_blank">
<img src="img/github.png" alt="Github" class="link_img" title="Github">
</a>
<a href="https://senhorbento.com.br/" target="_blank">
<img src="img/site.png" alt="Site" class="link_img" title="Site">
</a>
</footer>
</body>
</html>