Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling of 'logging' #133

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions TableDependency.SqlClient/SqlTableDependency.cs
Expand Up @@ -69,15 +69,15 @@ public class SqlTableDependency<T> : TableDependency<T> where T : class, new()
#region Properties

/// <summary>
/// Gets or sets a value indicating whether activate database loging and event viewer loging.
/// Gets or sets a value indicating whether activate database logging and event viewer logging.
/// </summary>
/// <remarks>
/// Only a member of the sysadmin fixed server role or a user with ALTER TRACE permissions can use it.
/// </remarks>
/// <value>
/// <c>true</c> if [activate database loging]; otherwise, <c>false</c>.
/// <c>true</c> if [activate database logging]; otherwise, <c>false</c>.
/// </value>
public bool ActivateDatabaseLoging { get; set; }
public bool ActivateDatabaseLogging { get; set; }

/// <summary>
/// Specifies the owner of the service to the specified database user.
Expand Down Expand Up @@ -521,7 +521,7 @@ protected virtual IList<string> CreateSqlServerDatabaseObjects(IEnumerable<Table
string.Join(", ", this.GetDmlTriggerType(_dmlTriggerType)),
this.CreateWhereCondifition(),
this.PrepareTriggerLogScript(),
this.ActivateDatabaseLoging ? " WITH LOG" : string.Empty,
this.ActivateDatabaseLogging ? " WITH LOG" : string.Empty,
columnsForExceptTable,
columnsForDeletedTable);

Expand Down Expand Up @@ -555,7 +555,7 @@ protected virtual Guid BeginConversation(SqlCommand sqlCommand)

protected virtual string PrepareTriggerLogScript()
{
if (this.ActivateDatabaseLoging == false) return string.Empty;
if (this.ActivateDatabaseLogging == false) return string.Empty;

return
Environment.NewLine + Environment.NewLine + "DECLARE @LogMessage VARCHAR(255);" + Environment.NewLine +
Expand All @@ -566,13 +566,13 @@ protected virtual string PrepareTriggerLogScript()
protected virtual string PrepareScriptProcedureQueueActivation(string dropAllScript)
{
var script = string.Format(SqlScripts.CreateProcedureQueueActivation, _dataBaseObjectsNamingConvention, dropAllScript, _schemaName);
return this.ActivateDatabaseLoging ? script : this.RemoveLogOperations(script);
return this.ActivateDatabaseLogging ? script : this.RemoveLogOperations(script);
}

protected virtual string PrepareScriptDropAll(string dropMessages)
{
var script = string.Format(SqlScripts.ScriptDropAll, _dataBaseObjectsNamingConvention, dropMessages, _schemaName);
return this.ActivateDatabaseLoging ? script : this.RemoveLogOperations(script);
return this.ActivateDatabaseLogging ? script : this.RemoveLogOperations(script);
}

protected virtual string RemoveLogOperations(string source)
Expand Down