加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-15 04:58:34 所属栏目:百科 来源:网络整理
导读: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-

<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; }
}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读