示例#1
0
 /// <summary>
 /// Add a proxy descriptor for the specified root business type.
 /// </summary>
 /// <param name="typeName">Type of the root business type</param>
 /// <param name="descriptor">Data Portal proxy descriptor</param>
 public static void AddDescriptor(string typeName, DataPortalProxyDescriptor descriptor)
 {
     InitializeDictionary();
     DataPortalTypeProxyDescriptors.Add(typeName, descriptor);
 }
示例#2
0
 /// <summary>
 /// Add a proxy descriptor for the specified root business type.
 /// </summary>
 /// <param name="resourceId">Server resource id</param>
 /// <param name="descriptor">Data Portal proxy descriptor</param>
 public static void AddDescriptor(int resourceId, DataPortalProxyDescriptor descriptor)
 {
     InitializeDictionary();
     DataPortalTypeProxyDescriptors.Add(resourceId.ToString(), descriptor);
 }
示例#3
0
 /// <summary>
 /// Add a proxy descriptor for the specified root business type.
 /// </summary>
 /// <param name="objectType">Root business type</param>
 /// <param name="descriptor">Data Portal proxy descriptor</param>
 public static void AddDescriptor(Type objectType, DataPortalProxyDescriptor descriptor)
 {
     InitializeDictionary();
     DataPortalTypeProxyDescriptors.Add(GetTypeName(objectType), descriptor);
 }