using System; using System.Collections.Generic; using System.ComponentModel; using XCode; using XCode.Configuration; using XCode.DataAccessLayer; namespace COMCMS.Core { /// 商家 [Serializable] [DataObject] [Description("商家")] [BindTable("Shop", Description = "商家", ConnName = "dbconn", DbType = DatabaseType.SqlServer)] public partial class Shop : IShop { #region 属性 private Int32 _Id; /// 编号 [DisplayName("编号")] [Description("编号")] [DataObjectField(true, true, false, 0)] [BindColumn("Id", "编号", "")] public Int32 Id { get { return _Id; } set { if (OnPropertyChanging(__.Id, value)) { _Id = value; OnPropertyChanged(__.Id); } } } private String _ShopName; /// 店铺名称 [DisplayName("店铺名称")] [Description("店铺名称")] [DataObjectField(false, false, true, 200)] [BindColumn("ShopName", "店铺名称", "")] public String ShopName { get { return _ShopName; } set { if (OnPropertyChanging(__.ShopName, value)) { _ShopName = value; OnPropertyChanged(__.ShopName); } } } private Int32 _KId; /// 商家分类ID [DisplayName("商家分类ID")] [Description("商家分类ID")] [DataObjectField(false, false, false, 0)] [BindColumn("KId", "商家分类ID", "")] public Int32 KId { get { return _KId; } set { if (OnPropertyChanging(__.KId, value)) { _KId = value; OnPropertyChanged(__.KId); } } } private Int32 _AId; /// 地区ID [DisplayName("地区ID")] [Description("地区ID")] [DataObjectField(false, false, false, 0)] [BindColumn("AId", "地区ID", "")] public Int32 AId { get { return _AId; } set { if (OnPropertyChanging(__.AId, value)) { _AId = value; OnPropertyChanged(__.AId); } } } private Int32 _Sequence; /// 排序 [DisplayName("排序")] [Description("排序")] [DataObjectField(false, false, false, 0)] [BindColumn("Sequence", "排序", "")] public Int32 Sequence { get { return _Sequence; } set { if (OnPropertyChanging(__.Sequence, value)) { _Sequence = value; OnPropertyChanged(__.Sequence); } } } private Decimal _Latitude; /// 纬度 [DisplayName("纬度")] [Description("纬度")] [DataObjectField(false, false, false, 0)] [BindColumn("Latitude", "纬度", "")] public Decimal Latitude { get { return _Latitude; } set { if (OnPropertyChanging(__.Latitude, value)) { _Latitude = value; OnPropertyChanged(__.Latitude); } } } private Decimal _Longitude; /// 经度 [DisplayName("经度")] [Description("经度")] [DataObjectField(false, false, false, 0)] [BindColumn("Longitude", "经度", "")] public Decimal Longitude { get { return _Longitude; } set { if (OnPropertyChanging(__.Longitude, value)) { _Longitude = value; OnPropertyChanged(__.Longitude); } } } private String _Country; /// 国家 [DisplayName("国家")] [Description("国家")] [DataObjectField(false, false, true, 50)] [BindColumn("Country", "国家", "")] public String Country { get { return _Country; } set { if (OnPropertyChanging(__.Country, value)) { _Country = value; OnPropertyChanged(__.Country); } } } private String _Province; /// 省 [DisplayName("省")] [Description("省")] [DataObjectField(false, false, true, 50)] [BindColumn("Province", "省", "")] public String Province { get { return _Province; } set { if (OnPropertyChanging(__.Province, value)) { _Province = value; OnPropertyChanged(__.Province); } } } private String _City; /// 市 [DisplayName("市")] [Description("市")] [DataObjectField(false, false, true, 50)] [BindColumn("City", "市", "")] public String City { get { return _City; } set { if (OnPropertyChanging(__.City, value)) { _City = value; OnPropertyChanged(__.City); } } } private String _District; /// 区 [DisplayName("区")] [Description("区")] [DataObjectField(false, false, true, 50)] [BindColumn("District", "区", "")] public String District { get { return _District; } set { if (OnPropertyChanging(__.District, value)) { _District = value; OnPropertyChanged(__.District); } } } private String _Address; /// 详细地址 [DisplayName("详细地址")] [Description("详细地址")] [DataObjectField(false, false, true, 250)] [BindColumn("Address", "详细地址", "")] public String Address { get { return _Address; } set { if (OnPropertyChanging(__.Address, value)) { _Address = value; OnPropertyChanged(__.Address); } } } private String _Postcode; /// 邮政编码 [DisplayName("邮政编码")] [Description("邮政编码")] [DataObjectField(false, false, true, 20)] [BindColumn("Postcode", "邮政编码", "")] public String Postcode { get { return _Postcode; } set { if (OnPropertyChanging(__.Postcode, value)) { _Postcode = value; OnPropertyChanged(__.Postcode); } } } private Int32 _IsDel; /// 是否删除 [DisplayName("是否删除")] [Description("是否删除")] [DataObjectField(false, false, false, 0)] [BindColumn("IsDel", "是否删除", "")] public Int32 IsDel { get { return _IsDel; } set { if (OnPropertyChanging(__.IsDel, value)) { _IsDel = value; OnPropertyChanged(__.IsDel); } } } private Int32 _IsHide; /// 是否隐藏 [DisplayName("是否隐藏")] [Description("是否隐藏")] [DataObjectField(false, false, false, 0)] [BindColumn("IsHide", "是否隐藏", "")] public Int32 IsHide { get { return _IsHide; } set { if (OnPropertyChanging(__.IsHide, value)) { _IsHide = value; OnPropertyChanged(__.IsHide); } } } private Int32 _IsDisabled; /// 是否禁用 [DisplayName("是否禁用")] [Description("是否禁用")] [DataObjectField(false, false, false, 0)] [BindColumn("IsDisabled", "是否禁用", "")] public Int32 IsDisabled { get { return _IsDisabled; } set { if (OnPropertyChanging(__.IsDisabled, value)) { _IsDisabled = value; OnPropertyChanged(__.IsDisabled); } } } private String _Content; /// 店铺介绍 [DisplayName("店铺介绍")] [Description("店铺介绍")] [DataObjectField(false, false, true, -1)] [BindColumn("Content", "店铺介绍", "")] public String Content { get { return _Content; } set { if (OnPropertyChanging(__.Content, value)) { _Content = value; OnPropertyChanged(__.Content); } } } private String _Keyword; /// 关键字 [DisplayName("关键字")] [Description("关键字")] [DataObjectField(false, false, true, 250)] [BindColumn("Keyword", "关键字", "")] public String Keyword { get { return _Keyword; } set { if (OnPropertyChanging(__.Keyword, value)) { _Keyword = value; OnPropertyChanged(__.Keyword); } } } private String _Description; /// 描述 [DisplayName("描述")] [Description("描述")] [DataObjectField(false, false, true, 250)] [BindColumn("Description", "描述", "")] public String Description { get { return _Description; } set { if (OnPropertyChanging(__.Description, value)) { _Description = value; OnPropertyChanged(__.Description); } } } private String _BannerImg; /// banner图片 [DisplayName("banner图片")] [Description("banner图片")] [DataObjectField(false, false, true, 250)] [BindColumn("BannerImg", "banner图片", "")] public String BannerImg { get { return _BannerImg; } set { if (OnPropertyChanging(__.BannerImg, value)) { _BannerImg = value; OnPropertyChanged(__.BannerImg); } } } private Decimal _Balance; /// 余额 [DisplayName("余额")] [Description("余额")] [DataObjectField(false, false, false, 0)] [BindColumn("Balance", "余额", "")] public Decimal Balance { get { return _Balance; } set { if (OnPropertyChanging(__.Balance, value)) { _Balance = value; OnPropertyChanged(__.Balance); } } } private Int32 _IsTop; /// 是否置顶 [DisplayName("是否置顶")] [Description("是否置顶")] [DataObjectField(false, false, false, 0)] [BindColumn("IsTop", "是否置顶", "")] public Int32 IsTop { get { return _IsTop; } set { if (OnPropertyChanging(__.IsTop, value)) { _IsTop = value; OnPropertyChanged(__.IsTop); } } } private Int32 _IsVip; /// 是否vip [DisplayName("是否vip")] [Description("是否vip")] [DataObjectField(false, false, false, 0)] [BindColumn("IsVip", "是否vip", "")] public Int32 IsVip { get { return _IsVip; } set { if (OnPropertyChanging(__.IsVip, value)) { _IsVip = value; OnPropertyChanged(__.IsVip); } } } private Int32 _IsRecommend; /// 是否推荐 [DisplayName("是否推荐")] [Description("是否推荐")] [DataObjectField(false, false, false, 0)] [BindColumn("IsRecommend", "是否推荐", "")] public Int32 IsRecommend { get { return _IsRecommend; } set { if (OnPropertyChanging(__.IsRecommend, value)) { _IsRecommend = value; OnPropertyChanged(__.IsRecommend); } } } private Int32 _Likes; /// 点赞数 [DisplayName("点赞数")] [Description("点赞数")] [DataObjectField(false, false, false, 0)] [BindColumn("Likes", "点赞数", "")] public Int32 Likes { get { return _Likes; } set { if (OnPropertyChanging(__.Likes, value)) { _Likes = value; OnPropertyChanged(__.Likes); } } } private Decimal _AvgScore; /// 平均分数 [DisplayName("平均分数")] [Description("平均分数")] [DataObjectField(false, false, false, 0)] [BindColumn("AvgScore", "平均分数", "")] public Decimal AvgScore { get { return _AvgScore; } set { if (OnPropertyChanging(__.AvgScore, value)) { _AvgScore = value; OnPropertyChanged(__.AvgScore); } } } private Decimal _ServiceScore; /// 服务分数 [DisplayName("服务分数")] [Description("服务分数")] [DataObjectField(false, false, false, 0)] [BindColumn("ServiceScore", "服务分数", "")] public Decimal ServiceScore { get { return _ServiceScore; } set { if (OnPropertyChanging(__.ServiceScore, value)) { _ServiceScore = value; OnPropertyChanged(__.ServiceScore); } } } private Decimal _SpeedScore; /// 速度分数 [DisplayName("速度分数")] [Description("速度分数")] [DataObjectField(false, false, false, 0)] [BindColumn("SpeedScore", "速度分数", "")] public Decimal SpeedScore { get { return _SpeedScore; } set { if (OnPropertyChanging(__.SpeedScore, value)) { _SpeedScore = value; OnPropertyChanged(__.SpeedScore); } } } private Decimal _EnvironmentScore; /// 环境分数 [DisplayName("环境分数")] [Description("环境分数")] [DataObjectField(false, false, false, 0)] [BindColumn("EnvironmentScore", "环境分数", "")] public Decimal EnvironmentScore { get { return _EnvironmentScore; } set { if (OnPropertyChanging(__.EnvironmentScore, value)) { _EnvironmentScore = value; OnPropertyChanged(__.EnvironmentScore); } } } private String _Pic; /// 图片 [DisplayName("图片")] [Description("图片")] [DataObjectField(false, false, true, 250)] [BindColumn("Pic", "图片", "")] public String Pic { get { return _Pic; } set { if (OnPropertyChanging(__.Pic, value)) { _Pic = value; OnPropertyChanged(__.Pic); } } } private String _MorePics; /// 店铺所有图片 [DisplayName("店铺所有图片")] [Description("店铺所有图片")] [DataObjectField(false, false, true, -1)] [BindColumn("MorePics", "店铺所有图片", "")] public String MorePics { get { return _MorePics; } set { if (OnPropertyChanging(__.MorePics, value)) { _MorePics = value; OnPropertyChanged(__.MorePics); } } } private String _Email; /// 邮箱 [DisplayName("邮箱")] [Description("邮箱")] [DataObjectField(false, false, true, 100)] [BindColumn("Email", "邮箱", "")] public String Email { get { return _Email; } set { if (OnPropertyChanging(__.Email, value)) { _Email = value; OnPropertyChanged(__.Email); } } } private String _Tel; /// 电话 [DisplayName("电话")] [Description("电话")] [DataObjectField(false, false, true, 50)] [BindColumn("Tel", "电话", "")] public String Tel { get { return _Tel; } set { if (OnPropertyChanging(__.Tel, value)) { _Tel = value; OnPropertyChanged(__.Tel); } } } private String _Phone; /// 固定电话 [DisplayName("固定电话")] [Description("固定电话")] [DataObjectField(false, false, true, 50)] [BindColumn("Phone", "固定电话", "")] public String Phone { get { return _Phone; } set { if (OnPropertyChanging(__.Phone, value)) { _Phone = value; OnPropertyChanged(__.Phone); } } } private String _Qq; /// QQ [DisplayName("QQ")] [Description("QQ")] [DataObjectField(false, false, true, 20)] [BindColumn("Qq", "QQ", "")] public String Qq { get { return _Qq; } set { if (OnPropertyChanging(__.Qq, value)) { _Qq = value; OnPropertyChanged(__.Qq); } } } private String _Skype; /// Skype [DisplayName("Skype")] [Description("Skype")] [DataObjectField(false, false, true, 100)] [BindColumn("Skype", "Skype", "")] public String Skype { get { return _Skype; } set { if (OnPropertyChanging(__.Skype, value)) { _Skype = value; OnPropertyChanged(__.Skype); } } } private String _HomePage; /// 主页 [DisplayName("主页")] [Description("主页")] [DataObjectField(false, false, true, 250)] [BindColumn("HomePage", "主页", "")] public String HomePage { get { return _HomePage; } set { if (OnPropertyChanging(__.HomePage, value)) { _HomePage = value; OnPropertyChanged(__.HomePage); } } } private String _Weixin; /// 微信 [DisplayName("微信")] [Description("微信")] [DataObjectField(false, false, true, 50)] [BindColumn("Weixin", "微信", "")] public String Weixin { get { return _Weixin; } set { if (OnPropertyChanging(__.Weixin, value)) { _Weixin = value; OnPropertyChanged(__.Weixin); } } } private Int32 _IsShip; /// 是否配送 [DisplayName("是否配送")] [Description("是否配送")] [DataObjectField(false, false, false, 0)] [BindColumn("IsShip", "是否配送", "")] public Int32 IsShip { get { return _IsShip; } set { if (OnPropertyChanging(__.IsShip, value)) { _IsShip = value; OnPropertyChanged(__.IsShip); } } } private DateTime _OpenTime; /// 开店时间 [DisplayName("开店时间")] [Description("开店时间")] [DataObjectField(false, false, true, 0)] [BindColumn("OpenTime", "开店时间", "")] public DateTime OpenTime { get { return _OpenTime; } set { if (OnPropertyChanging(__.OpenTime, value)) { _OpenTime = value; OnPropertyChanged(__.OpenTime); } } } private DateTime _CloseTime; /// 关店时间 [DisplayName("关店时间")] [Description("关店时间")] [DataObjectField(false, false, true, 0)] [BindColumn("CloseTime", "关店时间", "")] public DateTime CloseTime { get { return _CloseTime; } set { if (OnPropertyChanging(__.CloseTime, value)) { _CloseTime = value; OnPropertyChanged(__.CloseTime); } } } private DateTime _ShippingStartTime; /// 配送开始时间 [DisplayName("配送开始时间")] [Description("配送开始时间")] [DataObjectField(false, false, true, 0)] [BindColumn("ShippingStartTime", "配送开始时间", "")] public DateTime ShippingStartTime { get { return _ShippingStartTime; } set { if (OnPropertyChanging(__.ShippingStartTime, value)) { _ShippingStartTime = value; OnPropertyChanged(__.ShippingStartTime); } } } private DateTime _ShippingEndTime; /// 配送结束时间 [DisplayName("配送结束时间")] [Description("配送结束时间")] [DataObjectField(false, false, true, 0)] [BindColumn("ShippingEndTime", "配送结束时间", "")] public DateTime ShippingEndTime { get { return _ShippingEndTime; } set { if (OnPropertyChanging(__.ShippingEndTime, value)) { _ShippingEndTime = value; OnPropertyChanged(__.ShippingEndTime); } } } private DateTime _AddTime; /// 添加时间 [DisplayName("添加时间")] [Description("添加时间")] [DataObjectField(false, false, true, 0)] [BindColumn("AddTime", "添加时间", "")] public DateTime AddTime { get { return _AddTime; } set { if (OnPropertyChanging(__.AddTime, value)) { _AddTime = value; OnPropertyChanged(__.AddTime); } } } private Int32 _Hits; /// 点击量 [DisplayName("点击量")] [Description("点击量")] [DataObjectField(false, false, false, 0)] [BindColumn("Hits", "点击量", "")] public Int32 Hits { get { return _Hits; } set { if (OnPropertyChanging(__.Hits, value)) { _Hits = value; OnPropertyChanged(__.Hits); } } } private Int32 _MyType; /// 店铺类型 [DisplayName("店铺类型")] [Description("店铺类型")] [DataObjectField(false, false, false, 0)] [BindColumn("MyType", "店铺类型", "")] public Int32 MyType { get { return _MyType; } set { if (OnPropertyChanging(__.MyType, value)) { _MyType = value; OnPropertyChanged(__.MyType); } } } private Decimal _DefaultFare; /// 默认运费 [DisplayName("默认运费")] [Description("默认运费")] [DataObjectField(false, false, false, 0)] [BindColumn("DefaultFare", "默认运费", "")] public Decimal DefaultFare { get { return _DefaultFare; } set { if (OnPropertyChanging(__.DefaultFare, value)) { _DefaultFare = value; OnPropertyChanged(__.DefaultFare); } } } private Decimal _MaxFreeFare; /// 最大免运费金额 [DisplayName("最大免运费金额")] [Description("最大免运费金额")] [DataObjectField(false, false, false, 0)] [BindColumn("MaxFreeFare", "最大免运费金额", "")] public Decimal MaxFreeFare { get { return _MaxFreeFare; } set { if (OnPropertyChanging(__.MaxFreeFare, value)) { _MaxFreeFare = value; OnPropertyChanged(__.MaxFreeFare); } } } #endregion #region 获取/设置 字段值 /// 获取/设置 字段值 /// 字段名 /// public override Object this[String name] { get { switch (name) { case __.Id : return _Id; case __.ShopName : return _ShopName; case __.KId : return _KId; case __.AId : return _AId; case __.Sequence : return _Sequence; case __.Latitude : return _Latitude; case __.Longitude : return _Longitude; case __.Country : return _Country; case __.Province : return _Province; case __.City : return _City; case __.District : return _District; case __.Address : return _Address; case __.Postcode : return _Postcode; case __.IsDel : return _IsDel; case __.IsHide : return _IsHide; case __.IsDisabled : return _IsDisabled; case __.Content : return _Content; case __.Keyword : return _Keyword; case __.Description : return _Description; case __.BannerImg : return _BannerImg; case __.Balance : return _Balance; case __.IsTop : return _IsTop; case __.IsVip : return _IsVip; case __.IsRecommend : return _IsRecommend; case __.Likes : return _Likes; case __.AvgScore : return _AvgScore; case __.ServiceScore : return _ServiceScore; case __.SpeedScore : return _SpeedScore; case __.EnvironmentScore : return _EnvironmentScore; case __.Pic : return _Pic; case __.MorePics : return _MorePics; case __.Email : return _Email; case __.Tel : return _Tel; case __.Phone : return _Phone; case __.Qq : return _Qq; case __.Skype : return _Skype; case __.HomePage : return _HomePage; case __.Weixin : return _Weixin; case __.IsShip : return _IsShip; case __.OpenTime : return _OpenTime; case __.CloseTime : return _CloseTime; case __.ShippingStartTime : return _ShippingStartTime; case __.ShippingEndTime : return _ShippingEndTime; case __.AddTime : return _AddTime; case __.Hits : return _Hits; case __.MyType : return _MyType; case __.DefaultFare : return _DefaultFare; case __.MaxFreeFare : return _MaxFreeFare; default: return base[name]; } } set { switch (name) { case __.Id : _Id = value.ToInt(); break; case __.ShopName : _ShopName = Convert.ToString(value); break; case __.KId : _KId = value.ToInt(); break; case __.AId : _AId = value.ToInt(); break; case __.Sequence : _Sequence = value.ToInt(); break; case __.Latitude : _Latitude = Convert.ToDecimal(value); break; case __.Longitude : _Longitude = Convert.ToDecimal(value); break; case __.Country : _Country = Convert.ToString(value); break; case __.Province : _Province = Convert.ToString(value); break; case __.City : _City = Convert.ToString(value); break; case __.District : _District = Convert.ToString(value); break; case __.Address : _Address = Convert.ToString(value); break; case __.Postcode : _Postcode = Convert.ToString(value); break; case __.IsDel : _IsDel = value.ToInt(); break; case __.IsHide : _IsHide = value.ToInt(); break; case __.IsDisabled : _IsDisabled = value.ToInt(); break; case __.Content : _Content = Convert.ToString(value); break; case __.Keyword : _Keyword = Convert.ToString(value); break; case __.Description : _Description = Convert.ToString(value); break; case __.BannerImg : _BannerImg = Convert.ToString(value); break; case __.Balance : _Balance = Convert.ToDecimal(value); break; case __.IsTop : _IsTop = value.ToInt(); break; case __.IsVip : _IsVip = value.ToInt(); break; case __.IsRecommend : _IsRecommend = value.ToInt(); break; case __.Likes : _Likes = value.ToInt(); break; case __.AvgScore : _AvgScore = Convert.ToDecimal(value); break; case __.ServiceScore : _ServiceScore = Convert.ToDecimal(value); break; case __.SpeedScore : _SpeedScore = Convert.ToDecimal(value); break; case __.EnvironmentScore : _EnvironmentScore = Convert.ToDecimal(value); break; case __.Pic : _Pic = Convert.ToString(value); break; case __.MorePics : _MorePics = Convert.ToString(value); break; case __.Email : _Email = Convert.ToString(value); break; case __.Tel : _Tel = Convert.ToString(value); break; case __.Phone : _Phone = Convert.ToString(value); break; case __.Qq : _Qq = Convert.ToString(value); break; case __.Skype : _Skype = Convert.ToString(value); break; case __.HomePage : _HomePage = Convert.ToString(value); break; case __.Weixin : _Weixin = Convert.ToString(value); break; case __.IsShip : _IsShip = value.ToInt(); break; case __.OpenTime : _OpenTime = value.ToDateTime(); break; case __.CloseTime : _CloseTime = value.ToDateTime(); break; case __.ShippingStartTime : _ShippingStartTime = value.ToDateTime(); break; case __.ShippingEndTime : _ShippingEndTime = value.ToDateTime(); break; case __.AddTime : _AddTime = value.ToDateTime(); break; case __.Hits : _Hits = value.ToInt(); break; case __.MyType : _MyType = value.ToInt(); break; case __.DefaultFare : _DefaultFare = Convert.ToDecimal(value); break; case __.MaxFreeFare : _MaxFreeFare = Convert.ToDecimal(value); break; default: base[name] = value; break; } } } #endregion #region 字段名 /// 取得商家字段信息的快捷方式 public partial class _ { /// 编号 public static readonly Field Id = FindByName(__.Id); /// 店铺名称 public static readonly Field ShopName = FindByName(__.ShopName); /// 商家分类ID public static readonly Field KId = FindByName(__.KId); /// 地区ID public static readonly Field AId = FindByName(__.AId); /// 排序 public static readonly Field Sequence = FindByName(__.Sequence); /// 纬度 public static readonly Field Latitude = FindByName(__.Latitude); /// 经度 public static readonly Field Longitude = FindByName(__.Longitude); /// 国家 public static readonly Field Country = FindByName(__.Country); /// 省 public static readonly Field Province = FindByName(__.Province); /// 市 public static readonly Field City = FindByName(__.City); /// 区 public static readonly Field District = FindByName(__.District); /// 详细地址 public static readonly Field Address = FindByName(__.Address); /// 邮政编码 public static readonly Field Postcode = FindByName(__.Postcode); /// 是否删除 public static readonly Field IsDel = FindByName(__.IsDel); /// 是否隐藏 public static readonly Field IsHide = FindByName(__.IsHide); /// 是否禁用 public static readonly Field IsDisabled = FindByName(__.IsDisabled); /// 店铺介绍 public static readonly Field Content = FindByName(__.Content); /// 关键字 public static readonly Field Keyword = FindByName(__.Keyword); /// 描述 public static readonly Field Description = FindByName(__.Description); /// banner图片 public static readonly Field BannerImg = FindByName(__.BannerImg); /// 余额 public static readonly Field Balance = FindByName(__.Balance); /// 是否置顶 public static readonly Field IsTop = FindByName(__.IsTop); /// 是否vip public static readonly Field IsVip = FindByName(__.IsVip); /// 是否推荐 public static readonly Field IsRecommend = FindByName(__.IsRecommend); /// 点赞数 public static readonly Field Likes = FindByName(__.Likes); /// 平均分数 public static readonly Field AvgScore = FindByName(__.AvgScore); /// 服务分数 public static readonly Field ServiceScore = FindByName(__.ServiceScore); /// 速度分数 public static readonly Field SpeedScore = FindByName(__.SpeedScore); /// 环境分数 public static readonly Field EnvironmentScore = FindByName(__.EnvironmentScore); /// 图片 public static readonly Field Pic = FindByName(__.Pic); /// 店铺所有图片 public static readonly Field MorePics = FindByName(__.MorePics); /// 邮箱 public static readonly Field Email = FindByName(__.Email); /// 电话 public static readonly Field Tel = FindByName(__.Tel); /// 固定电话 public static readonly Field Phone = FindByName(__.Phone); /// QQ public static readonly Field Qq = FindByName(__.Qq); /// Skype public static readonly Field Skype = FindByName(__.Skype); /// 主页 public static readonly Field HomePage = FindByName(__.HomePage); /// 微信 public static readonly Field Weixin = FindByName(__.Weixin); /// 是否配送 public static readonly Field IsShip = FindByName(__.IsShip); /// 开店时间 public static readonly Field OpenTime = FindByName(__.OpenTime); /// 关店时间 public static readonly Field CloseTime = FindByName(__.CloseTime); /// 配送开始时间 public static readonly Field ShippingStartTime = FindByName(__.ShippingStartTime); /// 配送结束时间 public static readonly Field ShippingEndTime = FindByName(__.ShippingEndTime); /// 添加时间 public static readonly Field AddTime = FindByName(__.AddTime); /// 点击量 public static readonly Field Hits = FindByName(__.Hits); /// 店铺类型 public static readonly Field MyType = FindByName(__.MyType); /// 默认运费 public static readonly Field DefaultFare = FindByName(__.DefaultFare); /// 最大免运费金额 public static readonly Field MaxFreeFare = FindByName(__.MaxFreeFare); static Field FindByName(String name) { return Meta.Table.FindByName(name); } } /// 取得商家字段名称的快捷方式 public partial class __ { /// 编号 public const String Id = "Id"; /// 店铺名称 public const String ShopName = "ShopName"; /// 商家分类ID public const String KId = "KId"; /// 地区ID public const String AId = "AId"; /// 排序 public const String Sequence = "Sequence"; /// 纬度 public const String Latitude = "Latitude"; /// 经度 public const String Longitude = "Longitude"; /// 国家 public const String Country = "Country"; /// 省 public const String Province = "Province"; /// 市 public const String City = "City"; /// 区 public const String District = "District"; /// 详细地址 public const String Address = "Address"; /// 邮政编码 public const String Postcode = "Postcode"; /// 是否删除 public const String IsDel = "IsDel"; /// 是否隐藏 public const String IsHide = "IsHide"; /// 是否禁用 public const String IsDisabled = "IsDisabled"; /// 店铺介绍 public const String Content = "Content"; /// 关键字 public const String Keyword = "Keyword"; /// 描述 public const String Description = "Description"; /// banner图片 public const String BannerImg = "BannerImg"; /// 余额 public const String Balance = "Balance"; /// 是否置顶 public const String IsTop = "IsTop"; /// 是否vip public const String IsVip = "IsVip"; /// 是否推荐 public const String IsRecommend = "IsRecommend"; /// 点赞数 public const String Likes = "Likes"; /// 平均分数 public const String AvgScore = "AvgScore"; /// 服务分数 public const String ServiceScore = "ServiceScore"; /// 速度分数 public const String SpeedScore = "SpeedScore"; /// 环境分数 public const String EnvironmentScore = "EnvironmentScore"; /// 图片 public const String Pic = "Pic"; /// 店铺所有图片 public const String MorePics = "MorePics"; /// 邮箱 public const String Email = "Email"; /// 电话 public const String Tel = "Tel"; /// 固定电话 public const String Phone = "Phone"; /// QQ public const String Qq = "Qq"; /// Skype public const String Skype = "Skype"; /// 主页 public const String HomePage = "HomePage"; /// 微信 public const String Weixin = "Weixin"; /// 是否配送 public const String IsShip = "IsShip"; /// 开店时间 public const String OpenTime = "OpenTime"; /// 关店时间 public const String CloseTime = "CloseTime"; /// 配送开始时间 public const String ShippingStartTime = "ShippingStartTime"; /// 配送结束时间 public const String ShippingEndTime = "ShippingEndTime"; /// 添加时间 public const String AddTime = "AddTime"; /// 点击量 public const String Hits = "Hits"; /// 店铺类型 public const String MyType = "MyType"; /// 默认运费 public const String DefaultFare = "DefaultFare"; /// 最大免运费金额 public const String MaxFreeFare = "MaxFreeFare"; } #endregion } /// 商家接口 public partial interface IShop { #region 属性 /// 编号 Int32 Id { get; set; } /// 店铺名称 String ShopName { get; set; } /// 商家分类ID Int32 KId { get; set; } /// 地区ID Int32 AId { get; set; } /// 排序 Int32 Sequence { get; set; } /// 纬度 Decimal Latitude { get; set; } /// 经度 Decimal Longitude { get; set; } /// 国家 String Country { get; set; } /// 省 String Province { get; set; } /// 市 String City { get; set; } /// 区 String District { get; set; } /// 详细地址 String Address { get; set; } /// 邮政编码 String Postcode { get; set; } /// 是否删除 Int32 IsDel { get; set; } /// 是否隐藏 Int32 IsHide { get; set; } /// 是否禁用 Int32 IsDisabled { get; set; } /// 店铺介绍 String Content { get; set; } /// 关键字 String Keyword { get; set; } /// 描述 String Description { get; set; } /// banner图片 String BannerImg { get; set; } /// 余额 Decimal Balance { get; set; } /// 是否置顶 Int32 IsTop { get; set; } /// 是否vip Int32 IsVip { get; set; } /// 是否推荐 Int32 IsRecommend { get; set; } /// 点赞数 Int32 Likes { get; set; } /// 平均分数 Decimal AvgScore { get; set; } /// 服务分数 Decimal ServiceScore { get; set; } /// 速度分数 Decimal SpeedScore { get; set; } /// 环境分数 Decimal EnvironmentScore { get; set; } /// 图片 String Pic { get; set; } /// 店铺所有图片 String MorePics { get; set; } /// 邮箱 String Email { get; set; } /// 电话 String Tel { get; set; } /// 固定电话 String Phone { get; set; } /// QQ String Qq { get; set; } /// Skype String Skype { get; set; } /// 主页 String HomePage { get; set; } /// 微信 String Weixin { get; set; } /// 是否配送 Int32 IsShip { get; set; } /// 开店时间 DateTime OpenTime { get; set; } /// 关店时间 DateTime CloseTime { get; set; } /// 配送开始时间 DateTime ShippingStartTime { get; set; } /// 配送结束时间 DateTime ShippingEndTime { get; set; } /// 添加时间 DateTime AddTime { get; set; } /// 点击量 Int32 Hits { get; set; } /// 店铺类型 Int32 MyType { get; set; } /// 默认运费 Decimal DefaultFare { get; set; } /// 最大免运费金额 Decimal MaxFreeFare { get; set; } #endregion #region 获取/设置 字段值 /// 获取/设置 字段值 /// 字段名 /// Object this[String name] { get; set; } #endregion } }