C# Класс ZocBuild.Database.ScriptFile

Represents a build script for a database object.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AssertMatchingContent void
AssignExistingDatabaseDependencies void

Открытые методы

Метод Описание
ScriptFile ( DatabaseObject scriptObject, BuildErrorBase error ) : System

Instantiates a build script object in the given error state.

The instance created by this constructor represents a build script that was determined to be invalid even before the script content was parsed. This usually happens when the script repository encounters a problem.

ScriptFile ( TypedDatabaseObject scriptObject, string scriptContent, IParser parser ) : System

Instantiates a build script object.

This constructor will attempt to parse the given SQL and determine whether it is valid and whether the script creates the object specified by the given identifier. If the script is invalid in anyway, the ScriptError property will reflect that.

Приватные методы

Метод Описание
AssertMatchingContent ( ) : void
AssignExistingDatabaseDependencies ( ISet dependencies ) : void

Описание методов

ScriptFile() публичный Метод

Instantiates a build script object in the given error state.
The instance created by this constructor represents a build script that was determined to be invalid even before the script content was parsed. This usually happens when the script repository encounters a problem.
public ScriptFile ( DatabaseObject scriptObject, BuildErrorBase error ) : System
scriptObject DatabaseObject The identifier of the database object.
error BuildErrorBase The error that was encountered for this script.
Результат System

ScriptFile() публичный Метод

Instantiates a build script object.
This constructor will attempt to parse the given SQL and determine whether it is valid and whether the script creates the object specified by the given identifier. If the script is invalid in anyway, the ScriptError property will reflect that.
public ScriptFile ( TypedDatabaseObject scriptObject, string scriptContent, IParser parser ) : System
scriptObject TypedDatabaseObject The identifier of the database object to build.
scriptContent string The build script SQL content.
parser IParser The sql script parser for reading the SQL script content.
Результат System