Пример #1
0
        public Member_marketInfo FlagMarket(uint?Market_id, DateTime?Create_time)
        {
            Member_marketInfo item = Member_market.GetItem(Market_id.Value, this.Id.Value);

            if (item == null)
            {
                item = Member_market.Insert(new Member_marketInfo {
                    Market_id   = Market_id,
                    Member_id   = this.Id,
                    Create_time = Create_time
                });
            }
            else
            {
                item.UpdateDiy
                .SetCreate_time(Create_time).ExecuteNonQuery();
            }
            return(item);
        }
Пример #2
0
        public static Member_marketInfo Parse(string stringify)
        {
            string[] ret = stringify.Split(new char[] { '|' }, 3, StringSplitOptions.None);
            if (ret.Length != 3)
            {
                throw new Exception("格式不正确,Member_marketInfo:" + stringify);
            }
            Member_marketInfo item = new Member_marketInfo();

            if (string.Compare("null", ret[0]) != 0)
            {
                item.Market_id = uint.Parse(ret[0]);
            }
            if (string.Compare("null", ret[1]) != 0)
            {
                item.Member_id = uint.Parse(ret[1]);
            }
            if (string.Compare("null", ret[2]) != 0)
            {
                item.Create_time = new DateTime(long.Parse(ret[2]));
            }
            return(item);
        }
Пример #3
0
 public static string ToJson(this Member_marketInfo item)
 {
     return(string.Concat(item));
 }