简体   繁体   English

Microsoft Dynamics CRM 2011-更新实体

[英]Microsoft Dynamics CRM 2011 - update entites

In one of our projects we have integrated Microsoft Dynamics 2011 using its SDK. 在我们的一个项目中,我们使用其SDK集成了Microsoft Dynamics 2011。 However, when querying Accounts , not all the fields get included. 但是,在查询Accounts ,并非所有字段都包括在内。

The missing fields are not included in the local CrmEntities.cs , which apparently has been generated by some tool. 缺少的字段未包含在本地CrmEntities.cs ,该字段显然是由某些工具生成的。 However, I don't understand how to re-generate the file (I have not been working with CRM before). 但是,我不知道如何重新生成文件(我以前从未使用过CRM)。

Any clues? 有什么线索吗?

The tool was probably CrmSvcUtil which allows you to generate early bound classes. 该工具可能是CrmSvcUtil,它允许您生成早期绑定的类。 You need to regenerate the early bound classes when your entity model changes. 当您的实体模型更改时,您需要重新生成早期绑定的类。

See Create early bound entity classes with the code generation tool (CrmSvcUtil.exe) 请参阅使用代码生成工具创建早期绑定实体类(CrmSvcUtil.exe)

CrmSvcUtil.exe /url:http://<serverName>/<organizationName>/XRMServices/2011/Organization.svc
    /out:<outputFilename>.cs /username:<username> /password:<password> /domain:<domainName>
    /namespace:<outputNamespace> /serviceContextName:<serviceContextName>

It could be generated using Early Bound Generator from XrmToolbox. 它可以使用XrmToolbox中的Early Bound Generator生成

Even you can do the same from CrmSvcUtil from SDK, manually in command mode. 甚至您也可以在命令模式下从SDK的CrmSvcUtil进行相同的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM