Click or drag to resize

IceNetApplication Class

Abstract base class for database applications with standard characteristics (single database repository, configuration via [application].config).
Inheritance Hierarchy
SystemObject
  PDTec.IceNet.SdkIceNetApplication

Namespace:  PDTec.IceNet.Sdk
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public abstract class IceNetApplication

The IceNetApplication type exposes the following members.

Constructors
  NameDescription
Protected methodIceNetApplication
Initializes a new instance of the IceNetApplication class
Top
Properties
Methods
  NameDescription
Public methodStatic memberCode exampleAccessRepository
Marks the begin of a (disposable) repository access scope.
Public methodStatic memberCreateRepository
Creates a IDatabaseRepository instance that is useable independently from the 'using (AccessRepository()) {...}' scope.
Public methodStatic memberCreateRepository(String)
Creates a IDatabaseRepository instance that is initialized with userName. This instance initialized with "Administrator"can be used to perform login operation while a valid user name is not yet available in the IceNetUserName property.
Public methodStatic memberCreateRepositoryFactory
Creates a IDatabaseRepositoryFactory instance that is initialized with the common configuration settings.
Public methodStatic memberDiscardCurrentRepository
Discards the current repository to release all buffered objects. The next access to the Repository property will result in a different repository instance.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRepositoryStatus
Gets the repository status (repository mode and corresponding timestamps).
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetRepositoryMode
Sets the repository mode.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
Examples

The example shows how to use the AccessRepository method.

IceNetApplication.IceNetUserName = "Administrator";

using (IceNetApplication.AccessRepository())
{
    IObject pObject = IceNetApplication.Repository.GetObject("123");

    ReadData(pObject);

    IceNetApplication.TransactionScope.Execute(delegate()
    {
        WriteData(pObject);
    });
}
See Also