| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- using Castle.ActiveRecord;
- using System;
- using NHibernate.Criterion;
- namespace BizCom
- {
- [ActiveRecord("CE_ErpSampleCustomer")]
- public class CeErpSampleCustomer : ComBase<CeErpSampleCustomer>
- {
- /// <summary>
- ///
- /// </summary>
- [PrimaryKey(PrimaryKeyType.Native)]
- public int ID { get; set; }
- private string _buyer_nick = "";
- /// <summary>
- ///买家昵称
- /// </summary>
- [Property]
- public string buyer_nick
- {
- get { return _buyer_nick; }
- set { _buyer_nick = value; }
- }
- private string _userId = "";
- /// <summary>
- ///买家ID
- /// </summary>
- [Property]
- public string userId
- {
- get { return _userId; }
- set { _userId = value; }
- }
- private string _phone = "";
- /// <summary>
- ///电话
- /// </summary>
- [Property]
- public string phone
- {
- get { return _phone; }
- set { _phone = value; }
- }
- private string _address = "";
- /// <summary>
- ///地址
- /// </summary>
- [Property]
- public string address
- {
- get { return _address; }
- set { _address = value; }
- }
- /// <summary>
- ///最后购买时间
- /// </summary>
- [Property]
- public DateTime? lastbuy_time { get; set; }
- private string _seller_nick = "";
- /// <summary>
- ///
- /// </summary>
- [Property]
- public string seller_nick
- {
- get { return _seller_nick; }
- set { _seller_nick = value; }
- }
- private string _lastTid = "";
- /// <summary>
- ///上次购买订单号
- /// </summary>
- [Property]
- public string lastTid
- {
- get { return _lastTid; }
- set { _lastTid = value; }
- }
- private int _shopId = 0;
- /// <summary>
- /// 店铺id
- /// </summary>
- [Property]
- public int shopId
- {
- get { return _shopId; }
- set { _shopId = value; }
- }
- public static CeErpSampleCustomer GetByNick(string nick)
- {
- return FindFirst(Expression.Eq("buyer_nick", nick));
- }
- }
- }
|