Exemplo n.º 1
0
        public static RentsubletInfo Parse(string stringify)
        {
            string[] ret = stringify.Split(new char[] { '|' }, 5, StringSplitOptions.None);
            if (ret.Length != 5)
            {
                throw new Exception("格式不正确,RentsubletInfo:" + stringify);
            }
            RentsubletInfo item = new RentsubletInfo();

            if (string.Compare("null", ret[0]) != 0)
            {
                item.Id = uint.Parse(ret[0]);
            }
            if (string.Compare("null", ret[1]) != 0)
            {
                item.Market_id = uint.Parse(ret[1]);
            }
            if (string.Compare("null", ret[2]) != 0)
            {
                item.Create_time = new DateTime(long.Parse(ret[2]));
            }
            if (string.Compare("null", ret[3]) != 0)
            {
                item.Price = decimal.Parse(ret[3]);
            }
            if (string.Compare("null", ret[4]) != 0)
            {
                item.Type = (RentsubletTYPE)long.Parse(ret[4]);
            }
            return(item);
        }
Exemplo n.º 2
0
 public static string ToJson(this RentsubletInfo item)
 {
     return(string.Concat(item));
 }
Exemplo n.º 3
0
 public int UnflagRentsublet(RentsubletInfo Rentsublet) => UnflagRentsublet(Rentsublet.Id);
Exemplo n.º 4
0
 public RentsubletInfo AddRentsublet(RentsubletInfo item)
 {
     item.Market_id = this.Id;
     return(item.Save());
 }
Exemplo n.º 5
0
 public Rentsublet_franchisingInfo FlagRentsublet(RentsubletInfo Rentsublet) => FlagRentsublet(Rentsublet.Id);