public static FaqdescInfo Parse(string stringify) { string[] ret = stringify.Split(new char[] { '|' }, 2, StringSplitOptions.None); if (ret.Length != 2) { throw new Exception("格式不正确,FaqdescInfo:" + stringify); } FaqdescInfo item = new FaqdescInfo(); if (string.Compare("null", ret[0]) != 0) { item.Faq_id = uint.Parse(ret[0]); } if (string.Compare("null", ret[1]) != 0) { item.Content = ret[1].Replace(StringifySplit, "|"); } return(item); }
public static string ToJson(this FaqdescInfo item) { return(string.Concat(item)); }
public FaqdescInfo AddFaqdesc(FaqdescInfo item) { item.Faq_id = this.Id; return(item.Save()); }