forked from rappen/AutoNumManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SolutionProxy.cs
39 lines (26 loc) · 890 Bytes
/
SolutionProxy.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Microsoft.Xrm.Sdk;
namespace Rappen.XTB.AutoNumManager
{
internal class SolutionProxy
{
#region Public Fields
public Entity Solution;
#endregion Public Fields
#region Public Constructors
public SolutionProxy(Entity solutionentity)
{
Solution = solutionentity;
}
#endregion Public Constructors
#region Public Properties
public string Prefix { get { return ((AliasedValue)Solution["P.customizationprefix"]).Value.ToString() + "_"; } }
public string UniqueName { get { return Solution["uniquename"].ToString(); } }
#endregion Public Properties
#region Public Methods
public override string ToString()
{
return $"{Solution["friendlyname"]} ({Solution["uniquename"]})";
}
#endregion Public Methods
}
}