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

posted @ 2017-07-07 07:35  穆雄雄  阅读(85)  评论(0编辑  收藏  举报