Skip to content

Commit

Permalink
Merge pull request #34 from NileshGhodekar/master
Browse files Browse the repository at this point in the history
Support for executing SQL stored procedures and queries for SQL Server and ODBC Data Sources and other improvements
  • Loading branch information
NileshGhodekar authored Apr 14, 2017
2 parents bcc1663 + e419078 commit fa8d6b9
Show file tree
Hide file tree
Showing 14 changed files with 962 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,4 @@ ModelManifest.xml
/src/ReferencedAssemblies
/src/Scripts
/src/SolutionOutput
/src/WAL.snk
16 changes: 16 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ All notable changes to MIMWAL project will be documented in this file. The "Unre
* Support for multi-valued attributes in `[//Effective]` lookup in AuthZ workflows.
* Implement Approve Request Activity.

### Version 2.17.0414.0

#### Added

* Support for executing SQL stored procedures and queries for SQL Server and ODBC Data Sources with the implementation of following new functions:
* New function [CreateSqlParameter][CreateSqlParameterFunction]
* New function [CreateSqlParameter2][CreateSqlParameter2Function]
* New function [ExecuteSqlNonQuery][ExecuteSqlNonQueryFunction]
* New function [ExecuteSqlScalar][ExecuteSqlScalarFunction]
* New function [ValueByKey][ValueByKeyFunction]

### Version 2.16.1028.0

#### Changed
Expand Down Expand Up @@ -128,3 +139,8 @@ All notable changes to MIMWAL project will be documented in this file. The "Unre
[FormatMultivaluedListFunction]: https://github.com/Microsoft/MIMWAL/wiki/FormatMultivaluedList-Function
[ConvertToUniqueIdentifierFunction]: https://github.com/Microsoft/MIMWAL/wiki/ConvertToUniqueIdentifier-Function
[ConvertToStringFunction]: https://github.com/Microsoft/MIMWAL/wiki/ConvertToString-Function
[CreateSqlParameterFunction]: https://github.com/Microsoft/MIMWAL/wiki/CreateSqlParameter-Function
[CreateSqlParameter2Function]: https://github.com/Microsoft/MIMWAL/wiki/CreateSqlParameter2-Function
[ExecuteSqlNonQueryFunction]: https://github.com/Microsoft/MIMWAL/wiki/ExecuteSqlNonQuery-Function
[ExecuteSqlScalarFunction]: https://github.com/Microsoft/MIMWAL/wiki/ExecuteSqlScalar-Function
[ValueByKeyFunction]: https://github.com/Microsoft/MIMWAL/wiki/ValueByKey-Function
2 changes: 1 addition & 1 deletion src/Scripts/Register.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function UpdateAssemblyBindings
{
try
{
Import-Module "WebAdministration"
Import-Module "WebAdministration" -Debug:$false -Verbose:$false

$portalSite = Get-WebSite | Where-Object { $_.Name -eq $PortalSiteName }

Expand Down
2 changes: 2 additions & 0 deletions src/Settings.StyleCop
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<Value>hklm</Value>
<Value>lookup</Value>
<Value>Utc</Value>
<Value>Sql</Value>
</CollectionProperty>
</GlobalSettings>
<Parsers>
Expand All @@ -29,6 +30,7 @@
<AnalyzerSettings>
<CollectionProperty Name="Hungarian">
<Value>dn</Value>
<Value>db</Value>
</CollectionProperty>
</AnalyzerSettings>
</Analyzer>
Expand Down
4 changes: 2 additions & 2 deletions src/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal static class VersionInfo
/// Build Number (MMDD)
/// Revision (if any on the same day)
/// </summary>
internal const string Version = "2.16.1028.0";
internal const string Version = "2.17.0414.0";

/// <summary>
/// File Version information for the assembly consists of the following four values:
Expand All @@ -31,6 +31,6 @@ internal static class VersionInfo
/// Build Number (MMDD)
/// Revision (if any on the same day)
/// </summary>
internal const string FileVersion = "2.16.1028.0";
internal const string FileVersion = "2.17.0414.0";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public string Value

set
{
this.textBoxControl.Text = value;
this.textBoxControl.Text = !string.IsNullOrEmpty(value) ? value.Trim() : value;
}
}

Expand Down
5 changes: 5 additions & 0 deletions src/WorkflowActivityLibrary/Common/ContextItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ internal static class ContextItems
[SecurityCritical]
public static void SetContextItem(object key, object value)
{
if (key == null)
{
throw new ArgumentNullException("key");
}

Hashtable contextItems = (Hashtable)CallContext.GetData(CallContextSlotName) ?? new Hashtable();

contextItems[key] = value;
Expand Down
115 changes: 115 additions & 0 deletions src/WorkflowActivityLibrary/Common/EventIdentifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,31 @@ public static class EventIdentifier
/// </summary>
public const int ExpressionFunctionFormatMultivaluedList = 11676;

/// <summary>
/// The event identifier for ExpressionFunction CreateSqlParameter events
/// </summary>
public const int ExpressionFunctionCreateSqlParameter = 11677;

/// <summary>
/// The event identifier for ExpressionFunction CreateSqlParameter2 events
/// </summary>
public const int ExpressionFunctionCreateSqlParameter2 = 11678;

/// <summary>
/// The event identifier for ExpressionFunction ExecuteSqlScalar events
/// </summary>
public const int ExpressionFunctionExecuteSqlScalar = 11679;

/// <summary>
/// The event identifier for ExpressionFunction ExecuteSqlNonQuery events
/// </summary>
public const int ExpressionFunctionExecuteSqlNonQuery = 11680;

/// <summary>
/// The event identifier for ExpressionFunction ValueByKey events
/// </summary>
public const int ExpressionFunctionValueByKey = 11681;

/// <summary>
/// The event identifier for LookupEvaluator Constructor events
/// </summary>
Expand Down Expand Up @@ -2878,6 +2903,96 @@ public static class EventIdentifier
/// </summary>
public const int ExpressionFunctionFormatMultivaluedListInvalidSecondFunctionParameterTypeError = 41676;

/// <summary>
/// The event identifier for ExpressionFunction CreateSqlParameter events
/// </summary>
public const int ExpressionFunctionCreateSqlParameterInvalidFunctionParameterCountError = 41677;

/// <summary>
/// The event identifier for ExpressionFunction CreateSqlParameter events
/// </summary>
public const int ExpressionFunctionCreateSqlParameterInvalidFunctionParameterError = 41677;

/// <summary>
/// The event identifier for ExpressionFunction CreateSqlParameter events
/// </summary>
public const int ExpressionFunctionCreateSqlParameterNullFunctionParameterError = 41677;

/// <summary>
/// The event identifier for ExpressionFunction CreateSqlParameter events
/// </summary>
public const int ExpressionFunctionCreateSqlParameterInvalidFunctionParameterTypeError = 41677;

/// <summary>
/// The event identifier for ExpressionFunction CreateSqlParameter2 events
/// </summary>
public const int ExpressionFunctionCreateSqlParameter2InvalidFunctionParameterCountError = 41678;

/// <summary>
/// The event identifier for ExpressionFunction CreateSqlParameter2 events
/// </summary>
public const int ExpressionFunctionCreateSqlParameter2NullFunctionParameterError = 41678;

/// <summary>
/// The event identifier for ExpressionFunction CreateSqlParameter2 events
/// </summary>
public const int ExpressionFunctionCreateSqlParameter2InvalidFunctionParameterError = 41678;

/// <summary>
/// The event identifier for ExpressionFunction CreateSqlParameter2 events
/// </summary>
public const int ExpressionFunctionCreateSqlParameter2InvalidFunctionParameterTypeError = 41678;

/// <summary>
/// The event identifier for ExpressionFunction ExecuteSqlScalar events
/// </summary>
public const int ExpressionFunctionExecuteSqlScalarInvalidFunctionParameterCountError = 41679;

/// <summary>
/// The event identifier for ExpressionFunction ExecuteSqlScalar events
/// </summary>
public const int ExpressionFunctionExecuteSqlScalarNullFunctionParameterError = 41679;

/// <summary>
/// The event identifier for ExpressionFunction ExecuteSqlScalar events
/// </summary>
public const int ExpressionFunctionExecuteSqlScalarInvalidFunctionParameterTypeError = 41679;

/// <summary>
/// The event identifier for ExpressionFunction ExecuteSqlNonQuery events
/// </summary>
public const int ExpressionFunctionExecuteSqlNonQueryInvalidFunctionParameterCountError = 41680;

/// <summary>
/// The event identifier for ExpressionFunction ExecuteSqlNonQuery events
/// </summary>
public const int ExpressionFunctionExecuteSqlNonQueryNullFunctionParameterError = 41680;

/// <summary>
/// The event identifier for ExpressionFunction ExecuteSqlNonQuery events
/// </summary>
public const int ExpressionFunctionExecuteSqlNonQueryInvalidFunctionParameterTypeError = 41680;

/// <summary>
/// The event identifier for ExpressionFunction ValueByKey events
/// </summary>
public const int ExpressionFunctionValueByKeyInvalidFunctionParameterCountError = 41681;

/// <summary>
/// The event identifier for ExpressionFunction ValueByKey events
/// </summary>
public const int ExpressionFunctionValueByKeyNullFunctionParameterError = 41681;

/// <summary>
/// The event identifier for ExpressionFunction ValueByKey events
/// </summary>
public const int ExpressionFunctionValueByKeyInvalidFirstFunctionParameterTypeError = 41681;

/// <summary>
/// The event identifier for ExpressionFunction ValueByKey events
/// </summary>
public const int ExpressionFunctionValueByKeyInvalidSecondFunctionParameterTypeError = 41681;

/// <summary>
/// The event identifier for LookupEvaluator Constructor events
/// </summary>
Expand Down
Loading

0 comments on commit fa8d6b9

Please sign in to comment.