public override void AssignFrom(IAbstractObjectStructure source) { base.AssignFrom(source); var cnt = source as IColumnsConstraint; Columns = ColumnReference.CopyList(cnt.Columns); }
public IColumnReference getdstcolref() { ColumnReference res = new ColumnReference(dstcolname); res.SpecificData.AddAll(dstcolspecdata); return(res); }
public override void AssignFrom(IAbstractObjectStructure source) { base.AssignFrom(source); var fk = source as IForeignKey; OnUpdateAction = fk.OnUpdateAction; OnDeleteAction = fk.OnDeleteAction; PrimaryKeyTable = fk.PrimaryKeyTable; PrimaryKeyColumns = ColumnReference.CopyList(fk.PrimaryKeyColumns); }
protected virtual void ReadColRefs(List <IColumnReference> colrefs) { SkipSymbol("("); bool was = false; while (!IsSymbol(")")) { if (was) { SkipKeyword(","); } var cr = new ColumnReference(ReadName()); colrefs.Add(cr); ReadColRefProps(cr); if (IsKeyword("asc") || IsKeyword("desc")) { NextToken(); } was = true; } SkipSymbol(")"); }
protected virtual void ReadColRefProps(ColumnReference cr) { }
public static void MySet(this ColumnReference colref, string name, string value) { colref.SpecificData["mysql." + name] = value; }