IceNetApplication Class |
Namespace: PDTec.IceNet.Sdk
public abstract class IceNetApplication
The IceNetApplication type exposes the following members.
| Name | Description | |
|---|---|---|
| IceNetApplication | Initializes a new instance of the IceNetApplication class |
| Name | Description | |
|---|---|---|
| DatabaseConnectString | ||
| DatabaseService | ||
| EnforceDependencies | ||
| IceNetUserName |
Gets or sets the ice.NET user name.
| |
| IsCoreEditable | ||
| LicenseFilePath | ||
| Repository |
Gets the repository.
| |
| SqlBridgeConfiguration |
| Name | Description | |
|---|---|---|
| AccessRepository |
Marks the begin of a (disposable) repository access scope.
| |
| CreateRepository |
Creates a IDatabaseRepository instance that is useable
independently from the 'using (AccessRepository()) {...}' scope.
| |
| CreateRepository(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.
| |
| CreateRepositoryFactory |
Creates a IDatabaseRepositoryFactory instance that is
initialized with the common configuration settings.
| |
| DiscardCurrentRepository |
Discards the current repository to release all buffered objects. The next
access to the Repository property will result in a different
repository instance.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetRepositoryStatus |
Gets the repository status (repository mode and corresponding timestamps).
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetRepositoryMode |
Sets the repository mode.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
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); }); }