⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parray.cs

📁 Perst开源实时数据库
💻 CS
字号:
namespace Perst
{
    using System;
	
    /// <summary>
    /// Common interface for all PArrays
    /// </summary> 
    public interface GenericPArray 
    {
        /// <summary> Get number of the array elements
        /// </summary>
        /// <returns>the number of related objects
        /// 
        /// </returns>
        int Size();

        /// <summary> Get OID of array element.
        /// </summary>
        /// <param name="i">index of the object in the relation
        /// </param>
        /// <returns>OID of the object (0 if array contains <code>null</code> reference)
        /// </returns>
        int GetOid(int i);

        /// <summary>
        /// Set owner objeet for this PArray. Owner is persistent object contaning this PArray.
        /// This method is mostly used by storage itself, but can also used explicityl by programmer if
        /// Parray component of one persistent object is assigned to component of another persistent object
        /// </summary>
        /// <param name="owner">Link owner</param>
        void SetOwner(IPersistent owner);
    }

    /// <summary>Dynamically extended array of reference to persistent objects.
    /// It is inteded to be used in classes using virtual properties to 
    /// access components of persistent objects. You can not use standard
    /// C# array here, instead you should use PArray class.
    /// PArray is created by Storage.createArray method
    /// </summary>
#if USE_GENERICS
    public interface PArray<T> : GenericPArray, Link<T> where T:class,IPersistent
#else
    public interface PArray : GenericPArray, Link
#endif
    {
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -