IceNetApplicationAccessRepository Method |
Namespace: PDTec.IceNet.Sdk
public static IceNetApplicationRepositoryServiceScope AccessRepository()
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); }); }