One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| --modified from SO: http://stackoverflow.com/questions/5873170/generate-class-from-database-table | |
| --added table and column | |
| declare @TableName sysname = 'TableName' | |
| declare @Result varchar(max) = '[Table(Name = "' + @TableName + '")] | |
| public class ' + @TableName + ' | |
| {' | |
| select @Result = @Result + ' | |
| [Column(DbType = "' + |
| [HtmlTargetElement(Attributes = "is-active-page")] | |
| public class ActivePageTagHelper : TagHelper | |
| { | |
| /// <summary>The name of the action method.</summary> | |
| /// <remarks>Must be <c>null</c> if <see cref="P:Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper.Route" /> is non-<c>null</c>.</remarks> | |
| [HtmlAttributeName("asp-page")] | |
| public string Page { get; set; } | |
| /// <summary> | |
| /// Gets or sets the <see cref="T:Microsoft.AspNetCore.Mvc.Rendering.ViewContext" /> for the current request. |