You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
899 B
32 lines
899 B
using OpenDBDiff.Abstractions.Schema.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace OpenDBDiff.SqlServer.Schema.Options
|
|
{
|
|
public class SqlOptionScript : IOptionsContainer<bool>
|
|
{
|
|
private Boolean alterObjectOnSchemaBinding = true;
|
|
|
|
public SqlOptionScript()
|
|
{
|
|
}
|
|
|
|
public SqlOptionScript(IOptionsContainer<bool> optionsContainer)
|
|
{
|
|
AlterObjectOnSchemaBinding = optionsContainer.GetOptions()["AlterObjectOnSchemaBinding"];
|
|
}
|
|
|
|
public Boolean AlterObjectOnSchemaBinding
|
|
{
|
|
get { return alterObjectOnSchemaBinding; }
|
|
set { alterObjectOnSchemaBinding = value; }
|
|
}
|
|
|
|
public IDictionary<string, bool> GetOptions()
|
|
{
|
|
return new Dictionary<string, bool>() { { "AlterObjectOnSchemaBinding", AlterObjectOnSchemaBinding } };
|
|
}
|
|
}
|
|
}
|