public static ShopsecurityInfo Parse(string stringify) { string[] ret = stringify.Split(new char[] { '|' }, 5, StringSplitOptions.None); if (ret.Length != 5) { throw new Exception("格式不正确,ShopsecurityInfo:" + stringify); } ShopsecurityInfo item = new ShopsecurityInfo(); if (string.Compare("null", ret[0]) != 0) { item.Shop_id = uint.Parse(ret[0]); } if (string.Compare("null", ret[1]) != 0) { item.Idcard = ret[1].Replace(StringifySplit, "|"); } if (string.Compare("null", ret[2]) != 0) { item.Idcard_img1 = ret[2].Replace(StringifySplit, "|"); } if (string.Compare("null", ret[3]) != 0) { item.Idcard_img2 = ret[3].Replace(StringifySplit, "|"); } if (string.Compare("null", ret[4]) != 0) { item.License_img = ret[4].Replace(StringifySplit, "|"); } return(item); }
public ShopsecurityInfo AddShopsecurity(ShopsecurityInfo item) { item.Shop_id = this.Id; return(item.Save()); }
public static string ToJson(this ShopsecurityInfo item) { return(string.Concat(item)); }