private string setNote(object p_note1, string s_note, ITableTree itable0) { string p_note = Convert.ToString(p_note1); string ret = !(string.IsNullOrEmpty(s_note)) ? s_note : p_note; //p_note,p_name DataBaseTable dt1; DataBaseField df1; if (itable0.NAME.TableName == "TF_TABLE") { if (!string.IsNullOrEmpty(p_note) && !DataBase.Factory(conn).TryGetValue(p_note, out dt1)) { ret = string.Format("表{0},不存在", p_note); ConsoleService.Fatal(p_note); } } else if (itable0.NAME.TableName == "TF_TB_FIELD") { if (!string.IsNullOrEmpty(s_note) && !DataBase.Factory(conn).TryGetValue(p_note, s_note, out dt1, out df1)) { ret = string.Format("字段{0}-{1},不存在", p_note, s_note); ConsoleService.Fatal(p_note); } } return(ret); }