コード例 #1
0
		public CustomerDemographicsProxyStub CustomerDemographics_GetByPrimaryKey(System.String customerTypeID)
		{
			CustomerDemographics obj = new CustomerDemographics();
			if (obj.LoadByPrimaryKey(customerTypeID))
			{
				return obj;
			}
			return null;
		}
コード例 #2
0
		public jsResponse<CustomerDemographicsCollection, CustomerDemographics> CustomerDemographics_LoadByPrimaryKey(System.String customerTypeID)
		{
			jsResponse<CustomerDemographicsCollection, CustomerDemographics> response = new jsResponse<CustomerDemographicsCollection, CustomerDemographics>();

			try
			{
				CustomerDemographics entity = new CustomerDemographics();
				if (entity.LoadByPrimaryKey(customerTypeID))
				{
					response.entity = entity;
				}
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;
		}