Ejemplo n.º 1
0
        /// <summary>
        /// </summary>
        /// <param name="directoryPath">Path to SQL upgrade scripts</param>
        /// <param name="options">Different options for the file system script provider</param>
        /// <param name="sqlScriptOptions">The sql script options</param>
        public CustomFileSystemScriptProvider(string directoryPath, CustomFileSystemScriptOptions options, SqlScriptOptions sqlScriptOptions)
        {
            this.options = options ?? throw new ArgumentNullException(nameof(options));
            if (sqlScriptOptions == null)
            {
                throw new ArgumentNullException(nameof(sqlScriptOptions));
            }
            this.directoryPath = directoryPath ?? throw new ArgumentNullException(nameof(directoryPath));

            scriptProvider = new FileSystemScriptProvider(directoryPath, options, sqlScriptOptions);
        }
Ejemplo n.º 2
0
 ///<summary>
 ///</summary>
 ///<param name="directoryPath">Path to SQL upgrade scripts</param>
 ///<param name="options">Different options for the file system script provider</param>
 public CustomFileSystemScriptProvider(string directoryPath, CustomFileSystemScriptOptions options) : this(directoryPath, options, new SqlScriptOptions())
 {
 }