Example #1
0
 /// <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;
 }
Example #2
0
        /// <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);
        }
Example #3
0
 /// <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)
 {
 }
Example #4
0
 /// <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();
 }
Example #5
0
 /// <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)
 {
 }
Example #6
0
 /// <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)
 {
 }
Example #7
0
 /// <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)
 {
 }
Example #8
0
 /// <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;
 }
Example #9
0
 /// <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();
 }
Example #10
0
 /// <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)
 {
 }
Example #11
0
 /// <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)
 {
 }