#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(123, 1, true); WriteLiteral("\n"); EndContext(); #line 6 "/home/kvitajin/RiderProjects/vsb/DAIS/WebApplication1/WebApplication1/Pages/makeDocument.cshtml" Layout = null; #line default #line hidden BeginContext(148, 25, true); WriteLiteral("\n<!DOCTYPE html>\n\n<html>\n"); EndContext(); BeginContext(173, 77, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("head", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d0050078e345437fb760849972ab0702", async() => { BeginContext(179, 64, true); WriteLiteral("\n <title>Pokud toto vidíš, máš krutě pomalý internet</title>\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_HeadTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(250, 1, true); WriteLiteral("\n"); EndContext(); BeginContext(251, 419, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("body", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c74197f6af0847369db449cba092c539", async() => { BeginContext(257, 7, true); WriteLiteral("\n<div>\n"); EndContext(); #line 18 "/home/kvitajin/RiderProjects/vsb/DAIS/WebApplication1/WebApplication1/Pages/makeDocument.cshtml" Dokument tmp = new Dokument(); tmp.Nadpis = Request.Form["nadpis"]; tmp.RubrikaId = Convert.ToInt32(Request.Form["rubrikaId"]); var obsah = Request.Form["text"]; var obecId = Request.Form["obecId"]; tmp.Obrazek = ""; tmp.Obsah = obsah; DokumentTableProxy.Insert(tmp); Response.Redirect("/Index"); #line default #line hidden BeginContext(655, 8, true); WriteLiteral("\n</div>\n"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_BodyTagHelper); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(670, 8, true); WriteLiteral("\n</html>"); EndContext(); }
static void Main(string[] args) { Database db = new Database(); db.Connect(); // Obec obec = new Obec(); // obec.Nazev = "Ova"; // obec.Visible = 1; // ObecTableProxy.Insert(obec); // obec.Nazev = "f**k this shit"; // obec.ObecId = 5; // ObecTableProxy.Update(obec); // List<Obec> pff; // pff= ObecTableProxy.Select(); // foreach (var hovno in pff) { // Console.WriteLine(hovno.ObecId + " " + hovno.Nazev + " " + hovno.Visible); // } // // ObecTableProxy.Delete(obec); DateTime naroz = new DateTime(2006, 04, 26); Dokument doc = new Dokument(); doc.Nadpis = "oaksmasokkmsdlcks"; doc.Obsah = "slkdcmdkcmskdmcslskcmslkcmsdlcksmdclskdmcsdlkcmsdlkclmsdkllcmsclkks"; doc.RubrikaId = 1; DokumentTableProxy.Insert(doc); doc.Obsah = "spaaaaaat"; DokumentTableProxy.Update(doc); doc.RubrikaId = 1; // List<Dokument> dopff; // dopff = DokumentTableProxy.Select_rubr(doc); // foreach (var hovno in dopff) { // Console.WriteLine(hovno.DokumentId + " " + hovno.Nadpis + " " + hovno.Obsah+ " " + hovno.RubrikaId ); // } // doc.DokumentId = 1; // Dokument tmp = DokumentTableProxy.Select(doc); // Console.WriteLine(tmp.DokumentId + " " + tmp.Nadpis + " " + tmp.Obsah+ " " + tmp.RubrikaId ); // // Rubrika rubr =new Rubrika(); // rubr.Nazev = "hlazeni duhovych jednorozcu"; // RubrikaTableProxy.Insert(rubr); // rubr.Nazev = "vyhlazeni duhovych jednorozcu"; // rubr.RubrikaId = 13; // RubrikaTableProxy.Update(rubr); // rubr.RubrikaId = 5; // RubrikaTableProxy.Delete(rubr); // List<Rubrika> pff; // pff= RubrikaTableProxy.Select(); // foreach (var hovno in pff) { // Console.WriteLine(hovno.RubrikaId + " " + hovno.Nazev ); // } Komentar komentar = new Komentar(); komentar.Obsah = "dsmlsms"; komentar.DokumentId = 1; komentar.UzivatelId = 1; KomentarTableProxy.Update(komentar); KomentarTableProxy.Select_dokument(1); // db.Connect(); // OracleCommand cmd = new OracleCommand(); // cmd.CommandText = "Registruj"; // cmd.CommandType = CommandType.StoredProcedure; // cmd.Parameters.Add((OracleDbType.Date)naroz.ToString("yyyy-M-d dddd"), OracleDbType.Date).Value=naroz; // db.ExecuteNonQuery(cmd); }