public DBColumn GetColumn() { int index = ParamCode.IndexOf(' '); string code = ParamCode.Substring(0, index < 0 ? ParamCode.Length : index); DBColumn column = DBService.Schems.ParseColumn(code, Table.Schema); return(column); }
public DBForeignKey GetReference() { int index = ParamCode.IndexOf(' '); string code = ParamCode.Substring(0, index < 0 ? ParamCode.Length : index); DBColumn column = DBService.Schems.ParseColumn(code, Table.Schema); //var result = new DBConstraintForeign() { Table = column.Table, Column = column, Value = column.Reference }; //if (index >= 0) result.Value = ParamCode.Substring(index + 1); return(column?.GetForeign()); }