/// <summary>
		/// Load for the given parent.
		/// </summary>
		public static CustomerCompanySupportContract GetForCustomerCompany(
			CustomerCompany parentObject )
		{
			DataRow row = AdoNetSqlHelper.ExecuteRow(
				"GetCustomerCompanySupportContractByCustomerCompanyCrmReplicationUniqueID",
				new AdoNetSqlParamCollection(
				AdoNetSqlParamCollection.CreateParameter( "@CrmReplicationUniqueID", parentObject.CrmReplicationUniqueID )
				) );

			if ( row == null )
			{
				return null;
			}
			else
			{
				CustomerCompanySupportContract o = new CustomerCompanySupportContract();
				o.Load( row );

				if ( o.IsEmpty )
				{
					return null;
				}
				else
				{
					return o;
				}
			}
		}
		// ------------------------------------------------------------------

		/// <summary>
		/// Load an object by a given ID.
		/// </summary>
		public static CustomerCompanySupportContract GetByID(
			int id )
		{
			DataRow row = AdoNetSqlHelper.ExecuteRow(
				"GetCustomerCompanySupportContractByID",
				new AdoNetSqlParamCollection(
				AdoNetSqlParamCollection.CreateParameter( "@ID", id )
				) );

			if ( row == null )
			{
				return null;
			}
			else
			{
				CustomerCompanySupportContract o = new CustomerCompanySupportContract();
				o.Load( row );

				if ( o.IsEmpty )
				{
					return null;
				}
				else
				{
					return o;
				}
			}
		}
		/// <summary>
		/// Load all.
		/// </summary>
		public static CustomerCompanySupportContract[] GetAll()
		{
			DataTable table = AdoNetSqlHelper.ExecuteTable(
				"GetAllCustomerCompanySupportContracts",
				new AdoNetSqlParamCollection(
				) );

			if ( table == null )
			{
				return null;
			}
			else
			{
				ArrayList result = new ArrayList();

				foreach ( DataRow row in table.Rows )
				{
					CustomerCompanySupportContract o = new CustomerCompanySupportContract();
					o.Load( row );

					if ( !o.IsEmpty )
					{
						result.Add( o );
					}
				}

				if ( result.Count <= 0 )
				{
					return null;
				}
				else
				{
					return (CustomerCompanySupportContract[])result.ToArray(
						typeof( CustomerCompanySupportContract ) );
				}
			}
		}