DatabaseSchemaScript Class
Namespace: Nucleus.Data.Common
Assembly: Nucleus.Data.Common.dll
The DatabaseSchemaScript class represents database upgrade script meta-data and content.
Internal Use
This class is marked as internal use only. Internal use classes are not intended for use by extensions, and backward and forward compatibility is not guaranteed.
Constructor
Nucleus.Data.Common.DatabaseSchemaScript
Constructor
Nucleus.Data.Common.DatabaseSchemaScript (String fullName, Version version, String content)
Represents a database schema update script.
Properties
FullName
Property
Script name (resource/file name)
Content
Property
Script contents (sql commands)
Version
Property
Script schema version. This is extracted from the filename.
Methods
BuildManifestSchemaScript
(Assembly,String,String) Method
BuildManifestSchemaScript (Assembly scriptsAssembly, String scriptNamespace, String resourceName)
Create a DatabaseSchemaScript object representing an embedded database script.
Returns
A DatabaseSchemaScript object
CanParseVersion
(String,String) Method
CanParseVersion (String scriptNamespace, String resourceName)
Determine whether the filename of an embedded resource file is a version number.
Parameters
Name |
Type |
scriptNamespace
|
String
|
resourceName
|
String
Name of an embedded database script.
|
ParseVersion
(String) Method
ParseVersion (String resourceName)
Parse the filename of an embedded resource file and return its version number.
Parameters
Name |
Type |
resourceName
|
String
Name of an embedded database script.
|
Returns
System.Version containing the embedded script file version. The version is the file name without the file extension.