📄 linkentityhelpercollection.cs
字号:
using System;
using Microsoft.Crm.Sandbox.Mobile.CrmServiceSdk;
using Microsoft.Crm.Sandbox.Mobile.Helpers;
namespace Microsoft.Crm.Sandbox.Mobile.Helpers.Collection
{
public class LinkEntityHelperCollection : System.Collections.CollectionBase
{
private string _fromEntityName;
#region Properties
public string FromEntityName
{
get
{
return _fromEntityName;
}
}
public LinkEntityHelper this[int index]
{
get
{
return (LinkEntityHelper)List[index];
}
}
#endregion
#region Constructor
public LinkEntityHelperCollection(string fromEntityName)
{
_fromEntityName = fromEntityName;
}
#endregion
#region Methods
public LinkEntityHelper AddLink(string fromAttributeName, string toEntityName, string toAttributeName)
{
return AddLink(fromAttributeName, toEntityName, toAttributeName, JoinOperator.Inner);
}
public LinkEntityHelper AddLink(string fromAttributeName, string toEntityName, string toAttributeName, JoinOperator joinOperator)
{
LinkEntityHelper linkEntity = new LinkEntityHelper(_fromEntityName, fromAttributeName, toEntityName, toAttributeName, joinOperator);
List.Add(linkEntity);
return linkEntity;
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -