using Castle.ActiveRecord; using NHibernate.Criterion; namespace BizCom { [ActiveRecord("Ce_ErpSpecialRefund")] public class CeErpSpecialRefund : ComBase { [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private string _refoid = ""; /// ///交易编号 /// [Property] public string refoid { get { return _refoid; } set { _refoid = value; } } private string _refxml = ""; /// /// [Property] public string refxml { get { return _refxml; } set { _refxml = value; } } private int _whethernotify = 0; [Property] public int whethernotify { get { return _whethernotify; } set { _whethernotify = value; } } public static CeErpSpecialRefund GetByTid(string tid) { return FindFirst(Expression.Eq("refoid", tid)); } } }