// // ctor // #region protected DBForeignKey() /// <summary> /// /// </summary> protected DBForeignKey() { this.ReferenceColumns = new DBColumnList(); this.TableColumns = new DBColumnList(); this.OnDeleteAction = DBFKAction.Undefined; this.OnUpdateAction = DBFKAction.Undefined; }
/// <summary> /// Sets the action for the Foreign Key when one of the referenced fields is updated /// </summary> /// <param name="action">the action to perform</param> /// <returns></returns> public DBForeignKey OnUpdate(DBFKAction action) { this.OnUpdateAction = action; return(this); }