Beispiel #1
0
        public Member_shopInfo FlagMember(uint?Member_id, DateTime?Create_time)
        {
            Member_shopInfo item = Member_shop.GetItem(Member_id.Value, this.Id.Value);

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

            if (string.Compare("null", ret[0]) != 0)
            {
                item.Member_id = uint.Parse(ret[0]);
            }
            if (string.Compare("null", ret[1]) != 0)
            {
                item.Shop_id = uint.Parse(ret[1]);
            }
            if (string.Compare("null", ret[2]) != 0)
            {
                item.Create_time = new DateTime(long.Parse(ret[2]));
            }
            return(item);
        }
Beispiel #3
0
 public static string ToJson(this Member_shopInfo item)
 {
     return(string.Concat(item));
 }