Exemple #1
0
        public override void AssignFrom(IAbstractObjectStructure source)
        {
            base.AssignFrom(source);
            var cnt = source as IColumnsConstraint;

            Columns = ColumnReference.CopyList(cnt.Columns);
        }
Exemple #2
0
            public IColumnReference getdstcolref()
            {
                ColumnReference res = new ColumnReference(dstcolname);

                res.SpecificData.AddAll(dstcolspecdata);
                return(res);
            }
Exemple #3
0
        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)
 {
 }
Exemple #6
0
 public static void MySet(this ColumnReference colref, string name, string value)
 {
     colref.SpecificData["mysql." + name] = value;
 }