/// <summary> /// Initializes a new instance of the RecordBase class. This constructor /// is used for a record which already exists in the table. /// </summary> /// <param name="table">The table containing the record.</param> /// <param name="bookmark">The bookmark of the record.</param> protected RecordBase(TableBase table, Bookmark bookmark) : this() { this.table = table; this.Bookmark = bookmark; }
/// <summary> /// Called when a table is being closed. This removes the table from /// the list of open tables. /// </summary> /// <param name="table">The table being closed.</param> private void OnTableClose(TableBase table) { this.CheckNotDisposed(); this.openedTables.Remove(table); this.Tracer.TraceVerbose("table '{0}' was closed", table.TableName); }
/// <summary> /// Initializes a new instance of the ReadWriteRecord class. This constructor /// is used for a record which already exists in the table. /// </summary> /// <param name="table">The table containing the record.</param> /// <param name="bookmark">The bookmark of the record.</param> public ReadWriteRecord(TableBase table, Bookmark bookmark) : base(table, bookmark) { }
/// <summary> /// Initializes a new instance of the RecordBase class. This constructor /// is used when a new record is being created and will automatically /// prepare an insert. /// </summary> /// <param name="table">The table containing the record.</param> protected RecordBase(TableBase table) : this() { this.table = table; this.PrepareInsert(); }
/// <summary> /// Initializes a new instance of the ReadWriteRecord class. This constructor /// is used when a new record is being created and will automatically /// prepare an insert. /// </summary> /// <param name="table">The table containing the record.</param> public ReadWriteRecord(TableBase table) : base(table) { }
/// <summary> /// Initializes a new instance of the ReadWriteRecord class. This constructor /// is used when a new record is being created and will automatically /// prepare an insert. /// </summary> /// <param name="table">The table containing the record.</param> public ReadWriteRecord(TableBase table) : base(table) { }
/// <summary> /// Initializes a new instance of the ReadOnlyRecord class. This constructor /// is used for a record which already exists in the table. /// </summary> /// <param name="table">The table containing the record.</param> /// <param name="bookmark">The bookmark of the record.</param> public ReadOnlyRecord(TableBase table, Bookmark bookmark) : base(table, bookmark) { }
/// <summary> /// Initializes a new instance of the RecordBase class. This constructor /// is used for a record which already exists in the table. /// </summary> /// <param name="table">The table containing the record.</param> /// <param name="bookmark">The bookmark of the record.</param> protected RecordBase(TableBase table, Bookmark bookmark) : this() { this.table = table; this.Bookmark = bookmark; }
/// <summary> /// Initializes a new instance of the RecordBase class. This constructor /// is used when a new record is being created and will automatically /// prepare an insert. /// </summary> /// <param name="table">The table containing the record.</param> protected RecordBase(TableBase table) : this() { this.table = table; this.PrepareInsert(); }
/// <summary> /// Initializes a new instance of the ReadWriteRecord class. This constructor /// is used for a record which already exists in the table. /// </summary> /// <param name="table">The table containing the record.</param> /// <param name="bookmark">The bookmark of the record.</param> public ReadWriteRecord(TableBase table, Bookmark bookmark) : base(table, bookmark) { }
/// <summary> /// Initializes a new instance of the ReadOnlyRecord class. This constructor /// is used for a record which already exists in the table. /// </summary> /// <param name="table">The table containing the record.</param> /// <param name="bookmark">The bookmark of the record.</param> public ReadOnlyRecord(TableBase table, Bookmark bookmark) : base(table, bookmark) { }