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); }
public static string ToJson(this RentsubletInfo item) { return(string.Concat(item)); }
public int UnflagRentsublet(RentsubletInfo Rentsublet) => UnflagRentsublet(Rentsublet.Id);
public RentsubletInfo AddRentsublet(RentsubletInfo item) { item.Market_id = this.Id; return(item.Save()); }
public Rentsublet_franchisingInfo FlagRentsublet(RentsubletInfo Rentsublet) => FlagRentsublet(Rentsublet.Id);