コード例 #1
0
        public async Task <IDataObjectAccess> FindAsync(string dataObjectName, IDictionary <string, string> primaryKeys, params string[] relatedObjects)
        {
            var primaryKeysCollection = new PrimaryKeyCollection();

            foreach (var primaryKey in primaryKeys)
            {
                primaryKeysCollection.Add(primaryKey.Key, primaryKey.Value);
            }

            var fetchArguments = new FetchArguments
            {
                DataObjectType       = dataObjectName,
                PrimaryKeys          = primaryKeysCollection,
                RelatedObjects       = relatedObjects.ToArray(),
                ReturnAccessRights   = true,
                ReturnRequiredFields = true
            };

            using (var objectModelService = CreateServiceClient())
            {
                var result = await objectModelService.FetchAsync(CreateEphorteIdentity(), fetchArguments);

                return(new DataObjectAccess(result.DataObject, result.RequiredFields, result.AccessRights, result.ObjectRights));
            }
        }
コード例 #2
0
 public FetchResult Fetch(EphorteIdentity identity, FetchArguments arguments)
 {
     throw new System.NotImplementedException();
 }