コード例 #1
0
		public SuppliersProxyStub Suppliers_GetByPrimaryKey(System.Int32 supplierID)
		{
			Suppliers obj = new Suppliers();
			if (obj.LoadByPrimaryKey(supplierID))
			{
				return obj;
			}
			return null;
		}
コード例 #2
0
		public jsResponse<SuppliersCollection, Suppliers> Suppliers_LoadByPrimaryKey(System.Int32 supplierID)
		{
			jsResponse<SuppliersCollection, Suppliers> response = new jsResponse<SuppliersCollection, Suppliers>();

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

			return response;
		}