Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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());
        }