crm2011OrganizationServiceContext的事例
来源:互联网 发布:知乎怎么提问问题 编辑:程序博客网 时间:2024/04/29 07:08
using System;
using System.Linq;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Client;
public class ServiceContentHelper : OrganizationServiceContext
{
public ServiceContentHelper(Microsoft.Xrm.Sdk.IOrganizationService service) : base(service) { }
public void Retrieve()
{
var entityArray = this.CreateQuery("new_supplyaccount").ToArray();
if (entityArray != null)
{
System.Console.WriteLine("len: " + entityArray.Count());
foreach(Entity en in entityArray){
DisplayEntity(en, "new_supplyaccount");
}
}
}
private void DisplayEntity(Entity entity, string label)
{
System.Console.WriteLine("display" + label + "start_________________________________");
var keyArray = entity.Attributes.Keys;
foreach (string name in keyArray)
{
System.Console.WriteLine("attributeName: " + name + ",attributeValue: " + entity.Attributes[name]);
}
System.Console.WriteLine("display" + label + "end!_________________________________");
}
}
- crm2011OrganizationServiceContext的事例
- sql总结的事例
- CyclicBarrier的简单事例
- join()的简单事例
- spring的简单事例
- android SharedPreferences的事例
- js svg的事例
- crm2011ExecuteMultipleRequest的事例
- crm2011QueryByAttribute的事例
- dom4J的使用事例
- mongdb_GridFs的事例使用
- 坚持不懈的事例
- 注册表的应用与事例
- C# 事务的事例代码
- C#:复制对象的事例
- sql的简单事例总结
- label 的属性及事例
- 股市值得借鉴的事例
- 关于ioctl函数的学习和使用
- Linux驱动程序:统计单词个数
- 非软网络www.2ubu.com
- 傅里叶光学(四)衍射与干涉
- java 3DES 加解密
- crm2011OrganizationServiceContext的事例
- activiti5.13 框架 数据库表结构说明
- 非软网络www.2ubu.com
- NYOJ-96 n-1位数
- DB2 V9.7中的DATAACCESS权限
- 最深的孤独不是长久的一个人
- 多线程--前驱式关系
- 读写锁
- 因为根本不知道对方是把你想念