Пример #1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(109, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(157, 387, true);
            WriteLiteral(@"
    <div class=""container"">
        <table class=""table"">
            <thead class=""thead-dark"">
                <tr>
                    <th scope=""col"">Id</th>
                    <th scope=""col"">Name</th>
                    <th scope=""col"">Location</th>
                    <th scope=""col"">Capacity</th>
                    <th scope=""col"">操作</th>
                    <th>");
            EndContext();
            BeginContext(545, 31, false);
#line 16 "C:\Users\wt\source\repos\coreDemo\coreDemo\Views\Home\Index.cshtml"
            Write(options.Value.DefaultConnection);

#line default
#line hidden
            EndContext();
            BeginContext(576, 89, true);
            WriteLiteral("</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                ");
            EndContext();
            BeginContext(666, 22, false);
#line 20 "C:\Users\wt\source\repos\coreDemo\coreDemo\Views\Home\Index.cshtml"
            Write(Html.DisplayForModel());

#line default
#line hidden
            EndContext();
            BeginContext(688, 52, true);
            WriteLiteral("\r\n            </tbody>\r\n        </table>\r\n\r\n        ");
            EndContext();
            BeginContext(740, 26, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "da5b299ca3dc4a38889290abb320357d", async() => {
                BeginContext(760, 2, true);
                WriteLiteral("添加");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(766, 10, true);
            WriteLiteral("\r\n        ");
            EndContext();
            BeginContext(777, 61, false);
#line 25 "C:\Users\wt\source\repos\coreDemo\coreDemo\Views\Home\Index.cshtml"
            Write(await Component.InvokeAsync("MovieCount", new { cinemaId = 1 }));

#line default
#line hidden
            EndContext();
            BeginContext(838, 10, true);
            WriteLiteral("\r\n        ");
            EndContext();
            BeginContext(848, 59, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("vc:movie-count", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f9373603039e48e6a19978281996d5ea", async() => {
                BeginContext(878, 12, true);
                WriteLiteral("\r\n\r\n        ");
                EndContext();
            }
                                                                        );
            __MovieCountViewComponentTagHelper = CreateTagHelper <global::AspNetCore.Views_Home_Index.__Generated__MovieCountViewComponentTagHelper>();
            __tagHelperExecutionContext.Add(__MovieCountViewComponentTagHelper);
#line 26 "C:\Users\wt\source\repos\coreDemo\coreDemo\Views\Home\Index.cshtml"
            __MovieCountViewComponentTagHelper.cinemaId = 1;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("cinema-id", __MovieCountViewComponentTagHelper.cinemaId, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(907, 20, true);
            WriteLiteral("\r\n    </div>\r\n    \r\n");
            EndContext();
        }
Пример #2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(50, 436, true);
            WriteLiteral(@"
<div class=""container"">
    <div class=""row"">
        <table class=""table"">
            <thead class=""thead-dark"">
                <tr>
                    <th scope=""col"">Id</th>
                    <th scope=""col"">Name</th>
                    <th scope=""col"">Location</th>
                    <th scope=""col"">Capacity</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                ");
            EndContext();
            BeginContext(487, 22, false);
#line 17 "/home/alenson/Asp.net/aspcore/CoreDemo/Views/Home/Index.cshtml"
            Write(Html.DisplayForModel());

#line default
#line hidden
            EndContext();
            BeginContext(509, 48, true);
            WriteLiteral("\n            </tbody>\n        </table>\n\n        ");
            EndContext();
            BeginContext(557, 26, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b4fd79e4a60a4df28eda2dca43206bb3", async() => {
                BeginContext(577, 2, true);
                WriteLiteral("添加");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(583, 10, true);
            WriteLiteral("\n\n        ");
            EndContext();
            BeginContext(594, 62, false);
#line 23 "/home/alenson/Asp.net/aspcore/CoreDemo/Views/Home/Index.cshtml"
            Write(await Component.InvokeAsync("MovieCount", new { cinemaId = 1 }));

#line default
#line hidden
            EndContext();
            BeginContext(656, 10, true);
            WriteLiteral(";\n        ");
            EndContext();
            BeginContext(666, 47, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("vc:movie-count", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "11ec16276311410c96d320582e8c7e01", async() => {
            }
                                                                        );
            __MovieCountViewComponentTagHelper = CreateTagHelper <global::AspNetCore.Views_Home_Index.__Generated__MovieCountViewComponentTagHelper>();
            __tagHelperExecutionContext.Add(__MovieCountViewComponentTagHelper);
#line 24 "/home/alenson/Asp.net/aspcore/CoreDemo/Views/Home/Index.cshtml"
            __MovieCountViewComponentTagHelper.cinemaId = 1;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("cinema-id", __MovieCountViewComponentTagHelper.cinemaId, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(713, 18, true);
            WriteLiteral("\n    </div>\n</div>");
            EndContext();
        }