其他分享
首页 > 其他分享> > mvc.net分页查询案例——实体层(HouseModel.cs)

mvc.net分页查询案例——实体层(HouseModel.cs)

作者:互联网

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace HouseSys.Models
{
    [Serializable]
    public class HouseModel
    {
        [DisplayName("房屋编号")]
        public int HouseId { get; set; }
        [DisplayName("房屋标题")]
        public string Title { get; set; }
        [DisplayName("房屋类型")]
        public HouseTypeModel Type { get; set; }
        [DisplayName("房屋面积")]
        public double Floorage { get; set; }
        [DisplayName("房屋价格")]
        public double Price { get; set; }
        [DisplayName("街道")]
        public StreetModel Street { get; set; }
        [DisplayName("联系方式")]
        public string Contract { get; set; }
        [DisplayName("描述")]
        public string Description { get; set; }
        [DisplayName("联系人")]
        public UserModel PublishUser { get; set; }
        [DisplayName("发布时间")]
        public DateTime PublishTime { get; set; }
    }
}

标签:HouseModel,set,DisplayName,get,System,mvc,cs,using,public
来源: https://blog.51cto.com/u_12718584/2843742