Пример #1
0
        public async Task <DataPortalResult> Update(object obj, DataPortalContext context, bool isSync)
        {
            var dp     = new DataPortalSelector();
            var result = await dp.Update(obj, context, isSync).ConfigureAwait(false);

            ApplicationContext.GlobalContext["CustomDataPortalServer"] = "Update Called";

            return(result);
        }
Пример #2
0
        public async Task <DataPortalResult> Create(Type objectType, object criteria, DataPortalContext context, bool isSync)
        {
            var dp     = new DataPortalSelector();
            var result = await dp.Create(objectType, criteria, context, isSync).ConfigureAwait(false);

            ApplicationContext.GlobalContext["CustomDataPortalServer"] = "Create Called";

            return(result);
        }
Пример #3
0
 public CustomDataPortalServer(DataPortalSelector dataPortalSelector)
 {
     _dataPortalSelector = dataPortalSelector;
 }