mercredi 25 février 2015

Implementing Interface members


Vote count:

0




I'm currently building this and when I compile I'm getting the error:



'itas.biocats.business.SOP.PersistentSOPOrderLineVwItem' does not implement interface member 'System.ComponentModel.IComponent.Disposed' 'itas.biocats.business.SOP.PersistentSOPOrderLineVwItem' does not implement interface member 'System.ComponentModel.IComponent.Site'



I've tried looking around for something about implementing these interface members, but I'm struggling to get my head around it


Here's the code that throws this:



namespace itas.biocats.business.SOP
{
using System;
using System.Collections;
using System.ComponentModel;
using Sage.Common.Data;
using Sage.ObjectStore;


[Sage.ObjectStore.Builder.PersistentObjectAttribute(TableName = "PRO_SOPOrderLinesVw", Name = "SOPOrderLineVwItem")]
public class PersistentSOPOrderLineVwItem : Sage.ObjectStore.PersistentObject
{

/// <summary>
/// SLCustomerAccountID Field Name
/// </summary>
public const string FIELD_SLCUSTOMERACCOUNT = "SLCustomerAccount";

protected Sage.ObjectStore.Field _SLCustomerAccount;

/// <summary>
/// CustomerAccountNumber Field Name
/// </summary>
public const string FIELD_CUSTOMERACCOUNTNUMBER = "CustomerAccountNumber";

protected Sage.ObjectStore.Field _CustomerAccountNumber;

/// <summary>
/// CustomerAccountName Field Name
/// </summary>
public const string FIELD_CUSTOMERACCOUNTNAME = "CustomerAccountName";

protected Sage.ObjectStore.Field _CustomerAccountName;

/// <summary>
/// SOPOrderReturnID Field Name
/// </summary>
public const string FIELD_SOPORDERRETURN = "SOPOrderReturn";

protected Sage.ObjectStore.Field _SOPOrderReturn;

/// <summary>
/// DocumentNo Field Name
/// </summary>
public const string FIELD_DOCUMENTNO = "DocumentNo";

protected Sage.ObjectStore.Field _DocumentNo;

/// <summary>
/// DocumentDate Field Name
/// </summary>
public const string FIELD_DOCUMENTDATE = "DocumentDate";

protected Sage.ObjectStore.Field _DocumentDate;

/// <summary>
/// DocumentStatusID Field Name
/// </summary>
public const string FIELD_DOCUMENTSTATUS = "DocumentStatus";

protected Sage.ObjectStore.Field _DocumentStatus;

/// <summary>
/// DocumentStatusName Field Name
/// </summary>
public const string FIELD_DOCUMENTSTATUSNAME = "DocumentStatusName";

protected Sage.ObjectStore.Field _DocumentStatusName;

/// <summary>
/// DocumentTypeID Field Name
/// </summary>
public const string FIELD_DOCUMENTTYPE = "DocumentType";

protected Sage.ObjectStore.Field _DocumentType;

/// <summary>
/// SOPOrderReturnTypeName Field Name
/// </summary>
public const string FIELD_SOPORDERRETURNTYPENAME = "SOPOrderReturnTypeName";

protected Sage.ObjectStore.Field _SOPOrderReturnTypeName;

/// <summary>
/// SOPOrderReturnLineID Field Name
/// </summary>
public const string FIELD_SOPORDERRETURNLINE = "SOPOrderReturnLine";

protected Sage.ObjectStore.Field _SOPOrderReturnLine;

/// <summary>
/// LineTypeName Field Name
/// </summary>
public const string FIELD_LINETYPENAME = "LineTypeName";

protected Sage.ObjectStore.Field _LineTypeName;

/// <summary>
/// ItemCode Field Name
/// </summary>
public const string FIELD_ITEMCODE = "ItemCode";

protected Sage.ObjectStore.Field _ItemCode;

/// <summary>
/// UseDescription Field Name
/// </summary>
public const string FIELD_USEDESCRIPTION = "UseDescription";

protected Sage.ObjectStore.Field _UseDescription;

/// <summary>
/// ItemDescription Field Name
/// </summary>
public const string FIELD_ITEMDESCRIPTION = "ItemDescription";

protected Sage.ObjectStore.Field _ItemDescription;

/// <summary>
/// LineQuantity Field Name
/// </summary>
public const string FIELD_LINEQUANTITY = "LineQuantity";

protected Sage.ObjectStore.Field _LineQuantity;

/// <summary>
/// LineTotalValue Field Name
/// </summary>
public const string FIELD_LINETOTALVALUE = "LineTotalValue";

protected Sage.ObjectStore.Field _LineTotalValue;

/// <summary>
/// LineTaxValue Field Name
/// </summary>
public const string FIELD_LINETAXVALUE = "LineTaxValue";

protected Sage.ObjectStore.Field _LineTaxValue;

public PersistentSOPOrderLineVwItem()
{
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(ColumnName = "SLCustomerAccountID", AllowOverwrite = Sage.ObjectStore.Builder.AllowOverwriteType.Equal, DbType = System.Data.DbType.Int64, Precision = 11)]
public virtual long SLCustomerAccount
{
get
{
return this._SLCustomerAccount.GetInt64();
}
set
{
this._SLCustomerAccount.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.String, Precision = 8)]
public virtual string CustomerAccountNumber
{
get
{
return this._CustomerAccountNumber.GetString();
}
set
{
this._CustomerAccountNumber.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.String, Precision = 60)]
public virtual string CustomerAccountName
{
get
{
return this._CustomerAccountName.GetString();
}
set
{
this._CustomerAccountName.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(ColumnName = "SOPOrderReturnID", AllowOverwrite = Sage.ObjectStore.Builder.AllowOverwriteType.Equal, DbType = System.Data.DbType.Int64, Precision = 11)]
public virtual long SOPOrderReturn
{
get
{
return this._SOPOrderReturn.GetInt64();
}
set
{
this._SOPOrderReturn.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.String, Precision = 20)]
public virtual string DocumentNo
{
get
{
return this._DocumentNo.GetString();
}
set
{
this._DocumentNo.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.Date)]
public virtual System.DateTime DocumentDate
{
get
{
return this._DocumentDate.GetDateTime();
}
set
{
this._DocumentDate.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(ColumnName = "DocumentStatusID", DbType = System.Data.DbType.Int64, Precision = 15, DefaultValue = 0, FormatMask = "-9999.99")]
public virtual long DocumentStatus
{
get
{
return this._DocumentStatus.GetInt64();
}
set
{
this._DocumentStatus.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.String, Precision = 20)]
public virtual string DocumentStatusName
{
get
{
return this._DocumentStatusName.GetString();
}
set
{
this._DocumentStatusName.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(ColumnName = "DocumentTypeID", DbType = System.Data.DbType.Int64, Precision = 15, DefaultValue = 0, FormatMask = "-9999.99")]
public virtual long DocumentType
{
get
{
return this._DocumentType.GetInt64();
}
set
{
this._DocumentType.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.String, Precision = 20)]
public virtual string SOPOrderReturnTypeName
{
get
{
return this._SOPOrderReturnTypeName.GetString();
}
set
{
this._SOPOrderReturnTypeName.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(ColumnName = "SOPOrderReturnLineID", IsReadOnly = true, AllowOverwrite = Sage.ObjectStore.Builder.AllowOverwriteType.Equal, IsPrimaryKey = true, IsIndexed = true, IsUnique = true, DbType = System.Data.DbType.Int64, Precision = 11)]
public virtual Sage.Common.Data.DbKey SOPOrderReturnLine
{
get
{
return this._SOPOrderReturnLine.GetDbKey();
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.String, Precision = 20)]
public virtual string LineTypeName
{
get
{
return this._LineTypeName.GetString();
}
set
{
this._LineTypeName.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.String, Precision = 30)]
public virtual string ItemCode
{
get
{
return this._ItemCode.GetString();
}
set
{
this._ItemCode.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.Boolean)]
public virtual bool UseDescription
{
get
{
return this._UseDescription.GetBoolean();
}
set
{
this._UseDescription.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.AnsiString, Precision = 2147483647, DefaultValue = "0", FormatMask = "-9999999.99999")]
public virtual string ItemDescription
{
get
{
return this._ItemDescription.GetString();
}
set
{
this._ItemDescription.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.String, Precision = 12)]
public virtual string LineQuantity
{
get
{
return this._LineQuantity.GetString();
}
set
{
this._LineQuantity.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.String, Precision = 12)]
public virtual string LineTotalValue
{
get
{
return this._LineTotalValue.GetString();
}
set
{
this._LineTotalValue.Value = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[Sage.ObjectStore.Builder.MetaDataFieldAttribute(DbType = System.Data.DbType.String, Precision = 12)]
public virtual string LineTaxValue
{
get
{
return this._LineTaxValue.GetString();
}
set
{
this._LineTaxValue.Value = value;
}
}
}

public class PersistentSOPOrderLineVwItems : Sage.ObjectStore.PersistentObjectCollection, IComponent
{
public PersistentSOPOrderLineVwItems()
{
}
public PersistentSOPOrderLineVwItems(System.ComponentModel.IContainer container)
{
container.Add(this);
}

public PersistentSOPOrderLineVwItems(System.Data.IDataReader reader) : base(reader)
{
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new virtual PersistentSOPOrderLineVwItem this[int index]
{
get
{
return ((PersistentSOPOrderLineVwItem)(base[index]));
}
set
{
base[index] = value;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public override Sage.ObjectStore.PersistentObject Owner
{
get
{
if ((this.Query.Owner == null))
{
this.Query.Owner = new PersistentSOPOrderLineVwItem();
}
return this.Query.Owner;
}
}

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new virtual PersistentSOPOrderLineVwItem First
{
get
{
return ((PersistentSOPOrderLineVwItem)(base.First));
}
}
}
}


Where would I implement Site and Disposed? and does any one have an example for this context.


Thanks



asked 29 secs ago







Implementing Interface members

Aucun commentaire:

Enregistrer un commentaire