Ejemplo n.º 1
0
		public void EditNiceNames(ForeignKeys coll)
		{
			DataTable dt = ProLogForNiceNames(coll);
			DataRowCollection rows = dt.Rows;

			foreach(ForeignKey o in coll)
			{
				rows.Add(new object[] { o.Name, o.Alias, o } );
			}

			EpilogForNiceNames(dt);
		}
Ejemplo n.º 2
0
        protected internal virtual void AddForeignKey(ForeignKey fk)
        {
            if (null == _foreignKeys)
            {
                _foreignKeys = (ForeignKeys) dbRoot.ClassFactory.CreateForeignKeys();
                _foreignKeys.dbRoot = dbRoot;
            }

            _foreignKeys.AddForeignKey(fk);
        }