-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntityInfo.cs
More file actions
25 lines (21 loc) · 751 Bytes
/
EntityInfo.cs
File metadata and controls
25 lines (21 loc) · 751 Bytes
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
using AccessTeamViewer;
using Microsoft.Xrm.Sdk.Metadata;
namespace MsCrmTools.AuditCenter
{
public class EntityInfo
{
public EntityInfo(EntityMetadata emd)
{
Emd = emd;
LogicalName = emd.LogicalName;
DisplayName = emd.DisplayName?.UserLocalizedLabel?.Label ?? "N/A";
PrimaryAttribute = emd.PrimaryNameAttribute;
}
public string DisplayName { get; private set; }
public string LogicalName { get; private set; }
public string PrimaryAttribute { get; private set; }
public MyPluginControl.ActionState Action { get; set; }
public EntityMetadata Emd { get; set; }
public bool InitialState { get; set; }
}
}