C#MVC视图获取modle实体类中的参数

<p style="line-height:21px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:14px;">
在Modle 创建专辑类 Album,它有两个属性:Title 和 Genre .


<div class="cnblogs_code" style="border:1px solid rgb(204,204,204);overflow:auto;font-family:'Courier New' !important;background-color:rgb(245,245,245);">
<pre style="font-family:'Courier New' !important;"><span style="color:rgb(0,255);line-height:1.5 !important;">public <span style="color:rgb(0,255);line-height:1.5 !important;">class Album
{
<span style="color:rgb(0,255);line-height:1.5 !important;">string Title { <span style="color:rgb(0,255);line-height:1.5 !important;">get; <span style="color:rgb(0,255);line-height:1.5 !important;">set; }
<span style="color:rgb(0,255);line-height:1.5 !important;">public Genre Genre { <span style="color:rgb(0,255);line-height:1.5 !important;">set; }
}

相关文章

目录简介使用JS互操作使用ClipLazor库创建项目使用方法简单测...
目录简介快速入门安装 NuGet 包实体类User数据库类DbFactory...
本文实现一个简单的配置类,原理比较简单,适用于一些小型项...
C#中Description特性主要用于枚举和属性,方法比较简单,记录...
[TOC] # 原理简介 本文参考[C#/WPF/WinForm/程序实现软件开机...
目录简介获取 HTML 文档解析 HTML 文档测试补充:使用 CSS 选...