IArticleDatabase Interface

Represents an articles database in QDV.
Public Interface IArticleDatabase
This language is not supported or no code example is available.
public interface IArticleDatabase
This language is not supported or no code example is available.
Name Description
Public property ChangedFieldsCount Gets the number of fields changed by the last executed macro.
Public property DbConnection Gets the direct access to the database connection.
Public property FamilyTree Gets a tree hierarchy of article families in the database.
Public property FullPathToDatabase Gets the full path to the database.
Public property IdentifyWithReferenceOnly Gets a value indicating whether articles in this database are uniquely identified by only their reference or by the combination of their index fields.
Top
Methods
 
Name Description
Public method Close() Closes the database.
Public method CreateArticle(string, string, string, string, string) Creates a new article and adds it to the database.
Public method DeleteArticle(long) Deletes specified article.
Public method ExportToExcel(string) Exports the database to an Excel file.
Public method GetAllArticleRowIDs() Gets the row IDs of all articles in the DB.
Public method GetArticleFieldValue(long, string) Returns the value of specified article field.
Public method GetArticleInfo(long) Gets article info for the specified article.
Public method GetArticleInfo(string, string, string, string, string) Gets an article info for the article specified by reference.
Public method PreLoadAllArticles(ExecutionProgressTick) Pre-loads all articles from the DB to an internal dictionary. All successive accesses to the articles (with GetArticleInfo) are then performed very fast on that dictionary.
Public method RecordArticle(IEstimate, ITask, int, bool) Saves an article in the database.
Public method ResetChangedDataCount() Resets counter for Fields modified by the last macro execution.
Public method SetArticleFieldValue(long, string, object) Writes a value to an article field.
Public method SetArticleFieldValues(long, IDictionary<StringObject>) Writes values to multiple article fields at once.
Top
Version
 
Available since QDV 7.13.0001.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition