/// <summary> /// Construct a TableMap instance to hold information on the given table. /// </summary> /// <param name="broker">The PersistenceBroker instance used to obtain metadata on the table. /// If null is passed the DefaultProvider settings will be used.</param> /// <param name="tableName">The name of the table for which to hold information.</param> public TableMap( PersistenceBroker broker, string tableName ) : base( broker ) { provider = SessionBroker.Provider; // use property accessor to also set quoted name if( tableName != null ) { TableName = tableName; } fields = new FieldList(); }
/// <summary> /// Construct a TableMap instance to hold information on the given table. /// </summary> /// <param name="provider">The Gentle provider to which this map relates.</param> /// <param name="tableName">The name of the table for which to hold information.</param> public TableMap( IGentleProvider provider, string tableName ) : base( new PersistenceBroker( provider ) ) { this.provider = provider; // use property accessor to also set quoted name if( tableName != null ) { TableName = tableName; } fields = new FieldList(); }