using System;
using Microsoft.Xrm.Sdk;
/// <summary>
/// 创建自定义视图
/// </summary>
public class CreateViewHelper
{
public void Create(IOrganizationService service)
{
//查询的FetchXml
string fetchXml = @"<fetch version='1.0' output-format='xml-platform' mapping='logical'>
<entity name='new_class'>
<attribute name='new_classid' />
<attribute name='new_name' />
<attribute name='new_code' />
<attribute name='new_num' />