This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Cinteros/XrmToolBox.Plugi…
- Loading branch information
Showing
24 changed files
with
1,023 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...VerificationTool/SDK/IComparableEntity.cs → Common/SDK/IComparableEntity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Cinteros.Xrm.VersionVerificationTool.SDK | ||
namespace Cinteros.Xrm.SDK | ||
{ | ||
using System; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
VersionVerificationTool/SDK/IsolationMode.cs → Common/SDK/IsolationMode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Cinteros.Xrm.VersionVerificationTool.SDK | ||
namespace Cinteros.Xrm.SDK | ||
{ | ||
public enum IsolationMode | ||
{ | ||
|
6 changes: 2 additions & 4 deletions
6
...ificationTool/SDK/OrganizationSnapshot.cs → Common/SDK/OrganizationSnapshot.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
namespace Cinteros.Xrm.SDK | ||
{ | ||
using System; | ||
using Cinteros.Xrm.Utils; | ||
using Microsoft.Xrm.Sdk; | ||
|
||
public class PluginType | ||
{ | ||
#region Private Fields | ||
|
||
private Entity origin; | ||
|
||
#endregion Private Fields | ||
|
||
#region Public Constructors | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PluginType"/> class. | ||
/// </summary> | ||
public PluginType() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PluginType"/> class. | ||
/// </summary> | ||
/// <param name="entity"></param> | ||
public PluginType(Entity entity, PluginAssembly parentAssembly) | ||
{ | ||
this.origin = entity; | ||
|
||
this.Id = entity.Id; | ||
this.ParentAssembly = parentAssembly; | ||
|
||
this.FriendlyName = (string)entity.Attributes[Constants.Crm.Attributes.NAME]; | ||
} | ||
|
||
#endregion Public Constructors | ||
|
||
#region Public Properties | ||
|
||
/// <summary> | ||
/// Gets friendly name of plugin type | ||
/// </summary> | ||
public string FriendlyName | ||
{ | ||
get; | ||
private set; | ||
} | ||
|
||
/// <summary> | ||
/// Gets id of plugin type | ||
/// </summary> | ||
public Guid Id | ||
{ | ||
get; | ||
private set; | ||
} | ||
|
||
/// <summary> | ||
/// Gets information about parent assembly | ||
/// </summary> | ||
public PluginAssembly ParentAssembly | ||
{ | ||
get; | ||
private set; | ||
} | ||
|
||
#endregion Public Properties | ||
|
||
#region Public Methods | ||
|
||
public Entity ToEntity() | ||
{ | ||
return this.origin; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return this.FriendlyName; | ||
} | ||
|
||
#endregion Public Methods | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
namespace Cinteros.Xrm.SDK | ||
{ | ||
using System; | ||
using Cinteros.Xrm.Utils; | ||
using Microsoft.Xrm.Sdk; | ||
|
||
public class ProcessingStep | ||
{ | ||
#region Private Fields | ||
|
||
private Entity origin; | ||
|
||
#endregion Private Fields | ||
|
||
#region Public Constructors | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ProcessingStep"/> class. | ||
/// </summary> | ||
public ProcessingStep() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ProcessingStep"/> class. | ||
/// </summary> | ||
/// <param name="entity"></param> | ||
public ProcessingStep(Entity entity, PluginAssembly parentAssembly, PluginType parentType) | ||
{ | ||
this.origin = entity; | ||
|
||
this.Id = entity.Id; | ||
this.ParentAssembly = parentAssembly; | ||
this.ParentType = parentType; | ||
|
||
this.FriendlyName = (string)entity.Attributes[Constants.Crm.Attributes.NAME]; | ||
this.StateCode = (StateCode)((OptionSetValue)entity.Attributes[Constants.Crm.Attributes.STATE_CODE]).Value; | ||
} | ||
|
||
#endregion Public Constructors | ||
|
||
#region Public Properties | ||
|
||
/// <summary> | ||
/// Gets friendly name of plugin type | ||
/// </summary> | ||
public string FriendlyName | ||
{ | ||
get; | ||
private set; | ||
} | ||
|
||
/// <summary> | ||
/// Gets id of plugin type | ||
/// </summary> | ||
public Guid Id | ||
{ | ||
get; | ||
private set; | ||
} | ||
|
||
/// <summary> | ||
/// Gets information about parent plugin assembly | ||
/// </summary> | ||
public PluginAssembly ParentAssembly | ||
{ | ||
get; | ||
private set; | ||
} | ||
|
||
/// <summary> | ||
/// Gets information about parent plugin type | ||
/// </summary> | ||
public PluginType ParentType | ||
{ | ||
get; | ||
private set; | ||
} | ||
|
||
/// <summary> | ||
/// Gets information about state code of the entity | ||
/// </summary> | ||
public StateCode StateCode | ||
{ | ||
get; | ||
private set; | ||
} | ||
|
||
#endregion Public Properties | ||
|
||
#region Public Methods | ||
|
||
public Entity ToEntity() | ||
{ | ||
return this.origin; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
return this.FriendlyName; | ||
} | ||
|
||
#endregion Public Methods | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
VersionVerificationTool/SDK/Solution.cs → Common/SDK/Solution.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Cinteros.Xrm.SDK | ||
{ | ||
public enum StateCode | ||
{ | ||
Active = 0, | ||
Inactive = 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.